会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
吴之家
博客园
首页
新随笔
新文章
联系
订阅
管理
2018年8月28日
day29单例模式的4种实现模式
摘要: 单例模式的四种实现模式单例模式实现方式一: 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)
编辑