摘要: 1 class Dog(object): 2 __instance = None 3 4 def __init__(self): 5 pass 6 7 def __new__(cls): 8 if not cls.__instance: 9 cls.__instance = object.__n... 阅读全文
posted @ 2018-01-10 04:13 许小伍 阅读(126) 评论(0) 推荐(0) 编辑