python程序出错

2024-03-29 09:58:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我尝试了这个简单的Python程序:

x == 3
print x

但我有个错误:

Traceback (most recent call last):
  File "", line 1, in 
NameError: name 'x' is not defined

为什么?你知道吗


Tags: namein程序mostis错误linenot