class a(object): def __init__(self): self.b = 1 self.c = 2
这给出了错误:NameError:未定义名称"self"
我查看了上一篇文章,但错误原因不同.对此有何帮助?
python
python ×1