>>">
赞
踩
Am encountering this error in Windows Command line,done a wide search but could not get a perfect answer.Please find the error below and help in solving.
Traceback (most recent call last):
File "", line 1, in
NameError: name 'python' is not defined
>>>
Thanks in Advance,
解决方案
It looks like you are trying to start the Python interpreter by running the command python.
However the interpreter is already started. It is interpreting python as a name of a variable, and that name is not defined.
Try this instead and you should hopefully see that your Python installation is working as expected:
print("Hello world!")
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。