欢迎光临散文网 会员登陆 & 注册

IDLE 报错SyntaxError: multiple statements found while compiling a

2023-06-16 18:06 作者:跟Tom学编程  | 我要投稿

这是因为整体复制到IDLE 运行而产生的错误;

在IDLE中编译,默认每行都要回车的。如果是单独的语句,只能是一行一行的编辑。

建议换一个编辑器来执行代码,例如pycharm


IDLE 报错SyntaxError: multiple statements found while compiling a 的评论 (共 条)

分享到微博请遵守国家法律