摘要: 单例模式的四种实现模式单例模式实现方式一: import settings class MySQL: __instance=None def __init__(self, ip, port): self.ip = ip self.port = port @classmethod def from_c 阅读全文
posted @ 2018-08-28 17:34 吴之家 阅读(78) 评论(0) 推荐(0) 编辑