2018-10-23
阅读量:
832
python错误解析(十六)
代码如下:
>>> print x
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'x' is not defined
>>> x = 1
>>> print x
1
【错误分析】Python不允许使用未赋值变量






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
1条评论