当前位置: 移动技术网 > IT编程>脚本编程>Python > python实现倒计时的示例

python实现倒计时的示例

2019年04月01日  | 移动技术网IT编程  | 我要评论

kod4,鼻唇沟微整形,大众卡

复制代码 代码如下:

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' 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网