我不是专家,我没有长时间编程,但为什么不这样做?
door = input("I Have Found A Haunted House,Should I Go In?")
if door == "yes" or "Yes" or "YES":
print("Ok! I Am Going In")
else:
print("What?")
while door == "no" or "No" or "NO":
print("Awwh Thats A Shame, I Was Getting Excited")