所以我有這樣的代碼:爲什麼我的代碼不能以小寫形式返回?
welcome = input()
if (welcome.lower() == "Hello") or (welcome.lower() == "Hey") or (welcome.lower() == "Hej"):
input("Hello,\n" + "my name is Misty.")
else:
print ("That way of saying hello is new to me, should i save it in my memory?")
爲什麼當我寫小寫你好,嗨和HEJ這個代碼不寫打招呼還給我?
爲什麼你認爲'welcome.lower()'會永遠等於' 「你好」'它有一個大寫字母?還是其他的? –