elif命令==“退出”:^ IndentationError:unindent与任何外部缩进级别都不匹配

时间:2019-10-21 21:17:37

标签: python-3.x

    command = ""
  while True:
      command = input(">").lower()
  if command == "start":
    print("Car started...")
  elif command == "stop":
    print("car stopped...")
  elif command == "help":
    print("""
start - to start the car    
stop - to stop the car
quit - to quit
    """)
  elif command == "quit":
    break
  else:
     print("I don't understand...")

0 个答案:

没有答案