我的代码不断出现随机语法错误!我正在使用 python 3.3.2
def modestart():
modetype = int(input"""Select a Game Mode:
1 - Standard Selection Mode
2 - Ordered Mode
3 - Random Shuffle Mode!
Or press any other key to exit
""")
loop=True
while loop=True:
try:
if modetype == 1:
loop=False
standard()
if modetype == 2:
loop=False
ordered()
if modetype == 3:
loop=False
shuffle()
else:
loop==True
print("Please select a valid option")
except ValueError:
loop=True
print("Please select a valid option")
语法错误突出显示冒号后的整行
if modetype == 2:
谁能帮助我并告诉我这是什么,以及如何解决它?