这个问题来自以下问题,我们说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?
Run Code Online (Sandbox Code Playgroud)