![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python设计模式
p_oldpai
万物有灵。
展开
-
python设计模式实例(单例模式1)
自己学习过程中作为笔记使用,如果错误欢迎大家指出,谢谢。原创 2018-05-20 21:38:14 · 348 阅读 · 0 评论 -
python设计模式实例(单例模式2)
# -*- coding: utf-8 -*- ''' Author : www.oldpai.com Date : 2018/5/20 Desc : 单例模式中的懒汉实现模式 ''' class Singlaton(object): __instance = None def __init__(self): if not Singlaton.__instan...原创 2018-05-20 22:10:12 · 141 阅读 · 0 评论