为了账号安全,请及时绑定邮箱和手机立即绑定

python test.py File " ", line 1 python test.py ^ SyntaxError: invalid syntax 请

>>> while x<=200: ...="" if="" 0:="" sum="sum+x" x="x+1">>> print sum 10000 这个的执行时对的,但是单独用NOTEpad++,保存后总是提示语法错误。>>> python test.py  File "

", line 1    python test.py              ^ SyntaxError: invalid syntax 请问各位大神原因,谢谢

正在回答

1 回答

下载个pycharm软件试试吧,notepad++和命令行来回切换,太麻烦

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
初识Python
  • 参与学习       758354    人
  • 解答问题       8967    个

学python入门视频教程,让你快速入门并能编写简单的Python程序

进入课程

python test.py File " ", line 1 python test.py ^ SyntaxError: invalid syntax 请

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号