Creating a timer in python

后端 未结 13 2199
孤独总比滥情好
孤独总比滥情好 2020-12-07 18:58
import time
def timer():
   now = time.localtime(time.time())
   return now[5]


run = raw_input(\"Start? > \")
while run == \"start\":
   minutes = 0
   current_         


        
13条回答
  •  情歌与酒
    2020-12-07 19:36

    import time
    mintt=input("How many seconds you want to time?:")
    timer=int(mintt)
    while (timer != 0 ):
        timer=timer-1
        time.sleep(1)
        print(timer)
    

    This work very good to time seconds.

提交回复
热议问题