python多重继承
时间:2011-04-26 来源:孤独的猫
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.com ; http://kodingen.com/
相关阅读 更多 +