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

发布时间:2019-09-22 07:59:02编辑:auto阅读(2764)

    模块:time

    import time
    count = 0
    a = int(input('time:'))
    while (count < a):
        count_now = a - count
        print(count_now)
        time.sleep(1)#sleep 1 second
        count += 1
    print('done')

关键字