- 主题:请问一下安装了PYTHON后出现如下错误该怎么办
>>> python
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'python' is not defined
--
FROM 61.149.219.*
先 python=1 就不会错了
※ 修改:·freesand 于 Dec 10 10:22:13 2023 修改本文·[FROM: 223.104.163.*]
※ 来源:·水木社区
http://m.mysmth.net·[FROM: 223.104.163.*]
修改:freesand FROM 223.104.163.*
FROM 223.104.163.*
这个很正常啊,你是新手吗?Python内没有Python这个符号
【 在 bigfish578 的大作中提到: 】
:
: >>> python
: Traceback (most recent call last):
: File "<stdin>", line 1, in <module>
: NameError: name 'python' is not defined
#发自zSMTH@PCT-AL10
--
FROM 118.81.13.*
先别输入python这么长的,先来个1+1不香么
--
FROM 171.88.149.*
另外,提示一下退出方法,按Ctrl+Z,或者输入exit()
--
FROM 171.88.149.*
你已经在Python交互环境了。
【 在 bigfish578 的大作中提到: 】
: >>> python
: Traceback (most recent call last):
: File "<stdin>", line 1, in <module>
: ...................
--
FROM 222.128.40.*
你为啥要输入python
--
FROM 27.47.131.*
逗大家玩的?
【 在 bigfish578 的大作中提到: 】
: >>> python
: Traceback (most recent call last):
: File "<stdin>", line 1, in <module>
: ...................
--
FROM 125.33.39.*