G:\python>python mydict_test.py
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
因为你抄错了
Sign in to make a reply
_萨达姆_
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