class Parent():标签:__,name,Parent,python,self,Son,init,父类,super From: https://blog.51cto.com/haoyonghui/6019239
def __init__(self, name):
print(name)
class Son(Parent):
def __init__(self, name):
super().__init__(name)
s = Son(name="ccc")
class Parent():标签:__,name,Parent,python,self,Son,init,父类,super From: https://blog.51cto.com/haoyonghui/6019239
def __init__(self, name):
print(name)
class Son(Parent):
def __init__(self, name):
super().__init__(name)
s = Son(name="ccc")