class Fruit:
def __init__(self, color='green'):
Fruit.color = color
print("i am green")
def harvest(self, color):
print('kkkk' + self.color)
print('sdasda' + Fruit.color)
class Apple(Fruit):
mm = 'red'
def __init__(self):
print("i am apple")
super().__init__()
apple = Apple()
没有super().init(),则只会输出当前class的定义,“i am apple”