标签: python python-3.x
删除我不希望这是在线er0oijhw-og
答案 0 :(得分:-2)
错误的缩进。试试这个:
while True: close = input("Would you like to try again? Enter 'y' for Yes and 'n' for No: ") if close.lower() in ("n", "no"): print("Exiting") break