Discuss / Python / Dict类的继承super里面写少了参数

Dict类的继承super里面写少了参数

Topic source

Dict类的继承super里面写少了参数,应该是super(Dict, self)才对。

廖雪峰

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

py3的super有简写版:

>>> help(super)

super() -> same as super(__class__, <first argument>)

  • 1

Reply