python oldstyle inherit invoke parent member way

#!/usr/bin/env python
#encoding=utf-8
class A():
    def __init__(self):
        self.a="bb"
        print "A"
class B(A):
    def __init__(self):
        A.__init__(self)
        print self.a
        print "B"

B()

原文地址:https://www.cnblogs.com/lexus/p/2777252.html