【发布时间】:2013-02-07 04:51:18
【问题描述】:
这个问题源自以下question,假设class B 扩展class A
class A(object):
def do_work(self):
print 123
class B(A):
def do_work(self):
super(B,self).do_work() # versus the next statement
super(A,self).do_work() # what's the difference?
【问题讨论】:
标签: python inheritance parent super