-5
我不是专业人员,我没有长时间编程,但为什么不工作?我的Python模块不会工作
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")
“不起作用”是什么意思? – Marcin
Offtopic:我认为你的电脑上有“.title()”病毒...;) – mchfrnc
如果用户输入“no”,你是否真的想无限打印最后一条消息? – David