摘要: class Pro: def __init__(self,func): self.func = func def __get__(self, instance, owner): return self.func(instance) class Room: def __init__(self,name,width,length): self.name = name self.width = widt 阅读全文
posted @ 2019-09-26 18:04 Mr-谢 阅读(262) 评论(0) 推荐(0) 编辑
摘要: {'__module__': '__main__', '__init__': <function People.__init__ at 0x000000000291D1E0>, '__dict__': <attribute '__dict__' of 'People' objects>, '__we 阅读全文
posted @ 2019-09-26 15:32 Mr-谢 阅读(1083) 评论(0) 推荐(0) 编辑