用python写一个简单的倒计时软件

来源:互联网 发布:linux fcitx 安装 编辑:程序博客网 时间:2024/05/16 01:19

模块:time

import timecount = 0a = int(input('time:'))while (count < a):    count_now = a - count    print(count_now)    time.sleep(1)#sleep 1 second    count += 1print('done')
原创粉丝点击