0
点赞
收藏
分享

微信扫一扫

python super 参数问题


​​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__')


举报

相关推荐

0 条评论