当我告诉我的Python程序运行时,它就在那里

时间:2018-04-10 01:20:44

标签: python-3.x

我的节目是:

def start():
choice = 0
print("You see a dark cave ahead, and a castle in the distance")
while choice == 0:
  print("OPTIONS: CAVE; CASTLE")
  x = str(input())
  if x.lower() == "cave":
    cave()
    choice = 1
  elif x.lower() == "castle":
    castle()
    choice = 1
  else:
    print("That is not an option. Please try again")

当我跑它时,它只是坐在那里并没有做任何事情。我发现它没有任何问题。有什么提示吗?

0 个答案:

没有答案