摘要: 1.描述符的应用 用描述符实行类型检测 class Dtype: def __init__(self,key,expect_type): self.key = key self.expect_type = expect_type def __get__(self, instance, owner): 阅读全文
posted @ 2020-03-07 22:39 五号世界 阅读(201) 评论(0) 推荐(0) 编辑