我正在 python 3.3.3 中制作基于文本的游戏。这是我的代码:
print ("You must answer all questions in block capitals")
print ("Welcome to maze runner")
print ("To learn about the controls press C")
print ("To learn the about the different types T")
print ("To play press START")
run = input ()
#Controls
if run == "C":
print ("To attack press H")
print ("To walk forward press W")
print ("To turn left press A")
print ("To turn right press D")
print ("To turn around press S")
print ("To block press B")
print ("To open stats press Q")
print ("To open this screen press C")
print ("To close this screen press C")
#Types
if run == "T":
print ("Soldier. Press S for more info")
print ("Archer. Press A for more info")
print ("Mage. Press M for more info")
print ("Shape shifter. Press SS for more info")
type_info = input ()
#Solider info
if type_info == "S":
print ("Soldier: Good at close combat")
print (" Weak at long range combat")
print (" Average speed")
print (" Average blocker")
print ("Press S to go back")
#Archer info
if type_info == "A":
print ("Archer: Weak at close combat")
print (" Good at long range combat")
print (" Good speed")
print (" Average blocker")
print ("press A to go back")
我得到的错误是“缩进中制表符和空格的使用不一致”,然后突出显示该行的末尾:
print (" Good at long range combat")
怎么了??