Use of super python inheritance

1, inheriting a parent class

class Common(object):

def __init__(self,mylogger,logfile,excl_file):
self.mylogger = mylogger
self.logfile = logfile
self.excl_file = excl_file


class OMS(Common):

def __init__(self,mylogger,logfile,excl_file):
super(OMS,self).__init__(mylogger,logfile,excl_file)

2、继承多个父类
?????????????

 

Guess you like

Origin www.cnblogs.com/harryTree/p/11454514.html