大家注意上面的super方法时python2的方法,python3 跟python2的super 方法不一样。
python2 :
Teacher(Person): (namegendercourse): (Teacher,).__init__(namegender) .course = course
python3:
Teacher(Person): (gendercourse): ().(.namegender) .course = course
python2 :
Teacher(Person): (namegendercourse): (Teacher,).__init__(namegender) .course = course
python3:
Teacher(Person): (gendercourse): ().(.namegender) .course = course
2022-10-04
举报