初学 python
用 sublime 编辑器,写好的文件与 python 安装目录一致
在 poweshell 终端运行的时候,一直提示 SyntaxError: invalid syntax
求问大神,怎么破!
P.S.:powershell 运行路径
1.
>>> python input.py
File "<stdin>", line 1
python input.py
^
SyntaxError: invalid syn
2.
PS C:\Users\DELL> python
Python 3.6.4rc1 (v3.6.4rc1:3398dcb, Dec 5 2017, 20:41:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> input.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'builtin_function_or_method' object has no attribute 'py'
用 sublime 编辑器,写好的文件与 python 安装目录一致
在 poweshell 终端运行的时候,一直提示 SyntaxError: invalid syntax
求问大神,怎么破!
P.S.:powershell 运行路径
1.
>>> python input.py
File "<stdin>", line 1
python input.py
^
SyntaxError: invalid syn
2.
PS C:\Users\DELL> python
Python 3.6.4rc1 (v3.6.4rc1:3398dcb, Dec 5 2017, 20:41:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> input.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'builtin_function_or_method' object has no attribute 'py'
