继承的两个父类的参数不一致,子类应该怎么写
class Person(object):
def __init__(self, name, gender):
self.name = name
self.gender = gender
class Skillmixin(object):
def __init__(self,skill):
self.skill=skill
class Teacher(Person):
def __init__(self, name, gender, course):
super(Teacher, self).__init__(name, gender)
self.course = course
class FootballMixin(Skillmixin):
def __init__(self,skill,sex):
super(FootballMixin,self).__init__(skill)
self.sex=sex
class Football_teacter(Teacher,FootballMixin):
def __init__(self,name,gender,course,skill,sex,color):
super(Football_teacter,self).__init__(name, gender, course)
# super(Teacher,self).__init__(skill,sex)
self.color=color
s = Football_teacter('Bob', 'golor', '数学','ccc','足球','hot')
print(s.color)
print(s.name)
print(s.gender)
print(s.course)
print(s.skill)
print(s.sex)