摘要: 代码摘自书籍<<人人都懂设计模式>> 元类(C-8): class CustomMetaclass(type): def __init__(cls, what, bases=None, dict=None): # 这个方法只会调用一次 print('CustomMetaclass.__init__ 阅读全文
posted @ 2021-09-25 18:01 liDB 阅读(47) 评论(0) 推荐(0) 编辑