python实现倒计时的示例
发布时间:2016-12-28 来源:查字典编辑
摘要:复制代码代码如下:importtimecount=0a=input('time:')b=a*60while(count
复制代码 代码如下:
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'