我需要帮助,在从{a>开始再次启动应用的elif answer == "y":
之后添加代码
answer = input("Run again? (y/n): ")
import sys
if answer == "n":
print("Goodbye.")
sys.exit
elif answer == "y":
答案 0 :(得分:1)
import sys
status = True
while(status):
answer = input("Run again? (y/n): ")
if answer == "n":
status = False
elif answer == "y":
status = True
print("Goodbye.")
sys.exit