-3
我需要創建一個程序,從設定的時間進行數字倒計時。它需要打印以便讀取小時:分鐘:秒。從python設置時間的數字倒計時
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
請分享你嘗試過什麼...... –
進口時間 數= INT(輸入( 「請輸入您的起點」)) COUNT2 = INT(輸入(「請輸入您的起點「)) 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 –
請更新y我們的問題與你嘗試的代碼。這樣你就不會厭惡。 –