当前位置 博文首页 > python实现倒计时的示例

    python实现倒计时的示例

    作者:admin 时间:2021-06-22 18:29

    复制代码 代码如下:

    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' 

    js
    下一篇:没有了