是的,但仅适用于新型类。使用super()功能:
class Foo(Bar): def baz(self, arg): return super(Foo, self).baz(arg)对于Python 3.x,可以使用:class Foo(Bar): def baz(self, arg): return super().baz(arg)

是的,但仅适用于新型类。使用super()功能:
class Foo(Bar): def baz(self, arg): return super(Foo, self).baz(arg)对于Python 3.x,可以使用:class Foo(Bar): def baz(self, arg): return super().baz(arg)