首页 > 编程 > Python > 正文

Python 报错 NameError: name '_name_' is not defined

2019-11-08 01:05:58
字体:
来源:转载
供稿:网友
错误信息:NameError: name '_name_' is not defined。因为__name__是一个系统变量,包含了模块的名称。name两端可是双下划线的,并不是只有一个。
上一篇:Python异常类型

下一篇:Python处理JSON

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表