我想知道什么时候使用Python 3 super()的味道.
Help on class super in module builtins:
class super(object)
| super() -> same as super(__class__, <first argument>)
| super(type) -> unbound super object
| super(type, obj) -> bound super object; requires isinstance(obj, type)
| super(type, type2) -> bound super object; requires issubclass(type2, type)
Run Code Online (Sandbox Code Playgroud)
到目前为止,我super()只使用了没有参数,它按预期工作(由Java开发人员).
问题:
super(type, obj)和何时super(type, type2)?Mother.__init__(...)吗?