摘要: # 单例模式:多次实例化的结果指向同一个实例 # 单例模式实现方式一: ''' import settings class MySQL: __instance=None def __init__(self, ip, port): self.ip = ip self.port = port @clas 阅读全文
posted @ 2020-09-01 23:43 xuqidong 阅读(83) 评论(0) 推荐(0) 编辑