Python’s super() considered super!
python3中super()参数意义和用法
super().init() # 等同于 super(A, self).init()
class A(Base):
def __init__(self):
super().__init__() # 等同于 super(A, self).__init__()
print('A.__init__')
Python’s super() considered super!
python3中super()参数意义和用法
class A(Base):
def __init__(self):
super().__init__() # 等同于 super(A, self).__init__()
print('A.__init__')