python继承和重写

  •  继承和重写

  • 双下划线开始是私有属性:

 

  • 单下划线开始受保护的属性或方法(本身和子类可以访问)

 

原文地址:https://www.cnblogs.com/liuchunxiao83/p/12310645.html