摘要: 1. EnumMeta 元类编程,生成类的类,可以动态生成类。 用法: type(name, bases, dict) name 类名: str bases 基类: tuple dict 属性: dict EnumMeta元类是用于生成Enum类,后续类都继承Enum类。 _get_mixins_方 阅读全文
posted @ 2019-01-08 17:28 晨济 阅读(403) 评论(1) 推荐(0)