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__')
posted @ 2022-08-19 22:50  luoganttcc  阅读(8)  评论(0)    收藏  举报