python是多继承,java是单继承(可以实现多个接口)
python的多继承,Father和Monther有同样的方法谁写在前面就用谁的,比如下图Father写在前面就用Father的方法
打开文件with open as
super继承
类的封装
python的封装
Python中类的封装_笔记大全_设计学院https://www.python100.com/html/0UR5225IZQM6.html
python是多继承,java是单继承(可以实现多个接口)
python的多继承,Father和Monther有同样的方法谁写在前面就用谁的,比如下图Father写在前面就用Father的方法
打开文件with open as
super继承
类的封装
Python中类的封装_笔记大全_设计学院https://www.python100.com/html/0UR5225IZQM6.html