会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
路漫漫其修远兮,吾将上下而求索……
博客园
首页
新随笔
联系
订阅
管理
2018年8月28日
单例模式 与 网络编程
摘要: 单例模式: 定义:多次实例化都指向同一个内存地址 单例模式1 (绑定给类来 classmethod) class People: isinstances = None def __init__(self,name): self.name = name @classmethod def auth(cl
阅读全文
posted @ 2018-08-28 20:32 星牧
阅读(281)
评论(0)
推荐(0)
编辑
公告