描述符的应用
摘要:
1 class Typed: 2 def __init__(self,key,expected_type): 3 self.key=key 4 self.expected_type=expected_type 5 def __get__(self, instance, owner): 6 print('get方法') ... 阅读全文
posted @ 2019-02-24 22:27 元神出窍 阅读(85) 评论(0) 推荐(0) 编辑