Python---File "<stdin>", line 1 SyntaxError: invalid syntax
2017-02-09 09:53
651 查看
出现以下错误:
解决办法:
已经通过输入python进入了python运行环境,出现>>>时候的不能再用python z.py 来运行桌面上的z.py文件;
应该通过exit()退出当前python运行环境,然后再输入python z.py来运行桌面上的z.py文件;
更多iOS、Android、Python的文章,请点击:
更多Java、Unity3D的文章,请点击:
解决办法:
已经通过输入python进入了python运行环境,出现>>>时候的不能再用python z.py 来运行桌面上的z.py文件;
应该通过exit()退出当前python运行环境,然后再输入python z.py来运行桌面上的z.py文件;
更多iOS、Android、Python的文章,请点击:
http://blog.csdn.net/jamiecheung
更多Java、Unity3D的文章,请点击:
http://blog.csdn.net/u010841622
相关文章推荐
- python print'hello' File "<stdin>",line 1 print 'hello' SyntaxError:invalid syntax
- python print'hello' File "<stdin>",line 1 print 'hello' SyntaxError:invalid syntax
- File "<stdin>", line 1 pip install XXXXX ^ SyntaxError: invalid syntax
- python d:\test.py File "<stdin>", line 1 python d:\test.py ^ SyntaxError: invalid syntax
- Python学习第一个程序:python第一个程序hello.py提示出现File "<stdin>",line 1错误
- python {File "<stdin>", line 1} error
- [Python] example-one File"<stdin>",line 1错误
- Python 运行 Python hello.py 出错,提示: File "<stdin>" , line 1
- 第一个Python程序hello.py提示出现File "<stdin>",line 1错误
- python 2.6 mycli安装,File "/usr/bin/mycli", line 7, in <module>
- python:File "<string>", line 1, in <module>
- 运行hello.py出错,提示 File "<stdin>" , line 1
- File "<stdin>" , line 1 错误
- Python使用eval强制转换字符串为字典时报错:File "<string>", line 1, in <module> NameError: name 'nan' is not defined
- Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named
- 运行程序,首次运行出现“File{"<stdin>".line1,error}
- File "<stdin>" , line 1
- Windows编译Nodejs时遇到 File "configure", line 313 SyntaxError: invalid syntax Failed to create vc project files. 时的解决方法
- 写了一个hello.py,运行出错,提示 File "<stdin>" , line 1
- 写了一个hello.py,运行出错,提示 File "<stdin>" , line 1