单继承时super()和__init__()实现的功能是类似的
class base(object):
def __init__(self):
print 'base create'
class childA(base):
def __init__(self):
print 'creat A ',
base.__init__(self)
class childB(base):
def __init__(self):
print 'creat B ',
super(childB, self).__init__()
base = base()
a = childA()
b = childB()
base create creat A base create creat B base create
区别是使用super()继承时不用显式引用基类。
super()只能用于新式类中



