摘要:
1 #Author : Kelvin 2 #Date : 2019/1/22 20:38 3 class Foo: 4 def __get__(self, instance, owner): 5 print("__get__") 6 def __set__(self, instance, value): 7 print("__set_... 阅读全文
摘要:
1 #Author : Kelvin 2 #Date : 2019/1/22 20:02 3 class Fi: 4 def __init__(self): 5 self.a=1 6 self.b=1 7 def __iter__(self): 8 return self 9 def __next__(se... 阅读全文