【发布时间】:2016-12-14 13:54:29
【问题描述】:
我需要创建一个程序,从设定的时间开始进行数字倒计时。它需要被打印出来,所以它显示为 Hours:minutes:seconds。
import time
count=int(input("Enter your start point"))
count2=int(input("Enter your start point"))
count3=int(input("Enter your start point"))
while count and count and count3 >0:
time.sleep(1)
print(count,+":",+":",+count3)
count -=1
count2 -=1
count3 -=1
【问题讨论】:
-
请分享您的尝试...
-
导入时间 count=int(input("输入你的起点")) count2=int(input("输入你的起点")) count3=int(input("输入你的起点" )) while count and count and count3 >0: time.sleep(1) print(count,+":",+":",+count3) count -=1 count2 -=1 count3 -=1
-
请用您尝试过的代码更新您的问题。这样你就不会收到不喜欢。