摘要: 一、mixins机制 1、分主类和辅类, 继承辅类就有该辅类的功能, 不影响子类使用 2、命名方式:以mixin, able 为结尾 3、一般辅类的位置在主类的左边 1 class Vehicle: # 交通工具 2 def run(self): 3 pass 4 def run1(self): 5 阅读全文
posted @ 2021-07-15 21:18 Gnomeshghy 阅读(49) 评论(0) 推荐(0)