python 多继承详解[python高级教程]

class A(object):    # A must be new-style class
   def __init__(self):
    print "enter A"
    print "leave A"
 
class B(C):     # A --> C
   def __init__(self):
    print "enter B"
    super(B, self).__init__()
    print "leave B"
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » python 多继承详解