摘要: 设计模式之单例模式 class Foo: __instance = None def __init__(self): print("__init__") def __new__(cls, *args, **kwargs): print("__new__") if cls.__instance: re 阅读全文
posted @ 2016-06-30 15:35 yxy_linux 阅读(194) 评论(0) 推荐(0) 编辑