python实现倒计时的示例

648次阅读  |  发布于5年以前

复制代码 代码如下:

import time
count = 0
a = input('time:')
b = a * 60
while (count < b):
ncount = b - count
print ncount
time.sleep(1)
count += 1
print 'done'

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8