摘要: super() 函数是用于调用父类(超类)的一个方法。 这里以单继承为例: 没有super().__init__()时调用父类的属性和方法会报错 正确调用: 阅读全文
posted @ 2021-03-16 23:47 半日闲1 阅读(390) 评论(0) 推荐(0)