在给出启动,停止,帮助作为输入时,仍会根据else语句显示输出。
`
command = ""
while True:
command == input("> ").lower()
if command == "start":``
print("car is started")
elif command == "stop":
print("car is stopped")
elif command == "quit":
break
else:
print("I don't understand this")
我输入“ start”时的预期输出是汽车起步,但在每种情况下输出都是“我不明白”