摘要: # 描述符 + 元类 爽爆天 from collections import OrderedDict # 描述符的基类,通过类属性来指定参数 class Typed: # 赋值类型给子类继承用 _expected_type = type(None) def __init__(self, name=N 阅读全文
posted @ 2020-09-25 10:53 就是想学习 阅读(279) 评论(0) 推荐(0)