Imagine this: class A(object): class B(object): def __init__(self): super(B, self).__init__() This creates an error:
I get some error that I can\'t fi开发者_如何学Cgure out. Any clue what is wrong with my sample code?
I was reading how to implement private methods in Objective-C (Best way to define private methods for a class in Objective-C) and a question popped up in my mind:
目录Pythonsuper()面向对象编程一、为什么要用super()二、什么是super三、继承中使用super1、实例方法使用super2、构造方法使用super四、多继承中使用su...