python多重继承

class A():
    _a = 1

    def Afun(self):
        print 'A'

    def Common(self):
        print 'A-common'        

class A1():    
    def Common(self):
        print 'A1-common'   
        
class B(A,A1):
    _b = 2
    def Bfun(self):
        print 'B'

b = B()

b.Common()
可在http://codepad.org中进行在线调试;或http://ideone.comhttp://kodingen.com/
原文地址:https://www.cnblogs.com/djcsch2001/p/2029249.html