幽灵计划 发表于 2017-3-24 05:17:49

求助,为什么会有提示SyntaxError: multiple statements found while compiling a ...

求助,为什么会有提示SyntaxError: multiple statements found while compiling a single statement

alltolove 发表于 2017-3-24 05:59:13

你不能在命令行模式里打多个语句 ,必须另起一个文档编辑器

五行缺五行 发表于 2017-3-24 08:25:31

如果你想要写多行代码的,建议你最好使用文本编辑器,不要再IDLE里面输入多行代码,因为这可能会引起格式的问题

新手·ing 发表于 2017-3-24 18:18:33

你得新建一个
不能在idle里
点击 file 然后 new file

zmlbill 发表于 2019-3-21 12:21:02

谢谢

风华少年 发表于 2020-1-15 16:00:05

请问为什么打开了新的还是不行呢

风华少年 发表于 2020-1-15 16:00:36

print('鱼c工作室')
temp = input('不妨猜猜小甲鱼心中的那个数字:')
guess = int(temp)
if guess == 8:
    print('哇擦啦你是我心中的蛔虫吗')
    print('猜中了也没有奖品哦')
else:
    print('猜错啦')
print('游戏到此结束')

你怕是在梦里哦 发表于 2020-3-25 15:17:08

风华少年 发表于 2020-1-15 16:00


括号都打错了,符号都是英文的才行
页: [1]
查看完整版本: 求助,为什么会有提示SyntaxError: multiple statements found while compiling a ...