Python ';需要语法错误帮助
我是Python新手,我的游戏《寻找钻石之剑》有问题。 每当我运行脚本时,它都会不断出现Python ';需要语法错误帮助,python,syntax-error,Python,Syntax Error,我是Python新手,我的游戏《寻找钻石之剑》有问题。 每当我运行脚本时,它都会不断出现 File "/Users/parent/Desktop/Python applets/The Quest for the Diamond Sword.py", line 16 if direction == 'Right' ^ SyntaxError: invalid syntax 我已尝试将“a”改为“a”,但无效。结尾需要冒号;例如 if d
File "/Users/parent/Desktop/Python applets/The Quest for the Diamond Sword.py", line 16
if direction == 'Right'
^
SyntaxError: invalid syntax
我已尝试将“a”改为“a”,但无效。结尾需要冒号;例如
if direction == 'Right':