Python 类的super函数
类的super函数
super函数的作用
python子类继承父类的方法而使用的关键字.
当子类继承父类后 ,就可以使用父类的方法
super函数的用法
class Parent(object):
def __init__(self):
print('hello i am parent')
class Child(Parent):
def __init__(self):
print('hello i am child')
s...
hn.icodeq.com1 min read