>>">
当前位置:   article > 正文

python未定义名称大小,NameError:名称“ python”未定义

nameerror: name 'python' is not defined >>>

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.

python

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!")

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/645743
推荐阅读
相关标签
  

闽ICP备14008679号