文章分类 - python3
摘要:#使用描述符,定义描述符, class Tyeed: def __init__(self,key,expected_type):#2 self.key=key self.expected_type=expected_type def __get__(self, instance, owner): p
阅读全文
摘要:# def deco(obj): # print(' ') # return obj # @deco # def test(): # print('运行') # test() def deco(obj): print(' ') obj.z=1 obj.x=5 obj.c=3 return obj @
阅读全文

浙公网安备 33010602011771号