我似乎在代码中找不到问题...
user_decision = ""
while not user_decision == "yes" or not user_decision == "no":
user_decision = input("You want to Join?: Please answer (yes/no): ")
else:
if user_decision == "yes":
print("test")
else:
print("test")
谢谢。...
答案 0 :(得分:0)
我清理了一下:
user_decision = ""
while (user_decision != "yes") and (user_decision != "no"):
user_decision = input("You want to Join?: Please answer (yes/no): ")
if user_decision == "yes":
print("test yes")
else:
print("test not yes")