0
def beg():
if race == "orc":
print ("You come to the border of the valley but the path splits into two seperate paths one going east and the other going west, there is no indication of which one goes where but you figure you will go one way.")
print("Your options are: ")
print("1. left")
print("2. right")
time.sleep(10)
direction1 = input("You decicde to go: ")
if direction1 == "left":
print ("You decide to go left towards the snowy forest in which the snow elves live")
if direction1 == "right":
print ("You decide to go right towards the desert which is famous of the amount of bandits that are found there.")
else:
print ("Please pick one of the listed options")
beg()
基本上我得到的問題是,當代碼運行並選擇合適的工作原理,並打印文本,但是當你選擇離開它只是不斷循環BEG()錯誤:一直循環
對於縮進是語言的一部分的語言(如Python),您應該始終對您發佈的代碼進行校對,以便縮進是正確的。 –