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 super 参数问题
阅读 54
2023-01-16
Python’s super() considered super!
python3中super()参数意义和用法
class A(Base):
def __init__(self):
super().__init__() # 等同于 super(A, self).__init__()
print('A.__init__')
相关推荐
精彩评论(0)