class A: def foo(self): print 'foo called in A' class B: def foo(self): print 'foo called in B' def bar(self): print 'bar called in B' class C(A,B): pass
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/8224.html
class A: def foo(self): print 'foo called in A' class B: def foo(self): print 'foo called in B' def bar(self): print 'bar called in B' class C(A,B): pass
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/8224.html