-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