摘要: 一、单例模式 1、常用的单例模块 class Singleton(object): _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = super(Singleton, c 阅读全文
posted @ 2019-02-26 15:51 我用python写Bug 阅读(1112) 评论(0) 推荐(0) 编辑