import time launch = int(input("発射まで何秒?")) for sec in range(launch, 0, -1): print(sec) time.sleep(1) print("発射!") # プログラム6-15(カウントダウンして発射)