我有一个python脚本,并且收到以下错误:Traceback (most recent call last): File "C:\Users\Tim\Desktop\pop-erp\test.py", line 1, in <module> s = Something() NameError: name 'Something' is not defined这是导致问题的代码:s = Something()s.out()class Something: def out(): print("it works")这是在Windows 7 x86-64下与Python 3.3.0一起运行的。为什么找不到Something班级?
添加回答
举报
0/150
提交
取消