Discuss / Python / 照着写的代码,报错,什么问题?

照着写的代码,报错,什么问题?

Topic source

_萨达姆_

#1 Created at ... [Delete] [Delete and Lock User]

G:\python>python mydict_test.py

EEEEE

ERROR: testattr (_main.TestDict)

Traceback (most recent call last): File "mydicttest.py", line 21, in testattr d = Dict() File "G:\python\mydict.py", line 6, in init super.init(**kw) TypeError: descriptor '__init' of 'super' object needs an argument

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

因为你抄错了


  • 1

Reply