Python代码`

我需要从一开始Python代码`

answer = input("Run again? (y/n): ") 

import sys

if answer == "n":

print("Goodbye.")

sys.exit

elif answer == "y":

回答:

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

以上是 Python代码` 的全部内容, 来源链接: utcz.com/qa/263774.html

回到顶部