摘要: Python 单例模式:class Singleton(object): def __new__(cls, *args, **kw): if not hasattr(cls, '_instance'): orig = super(Singleton, cls... 阅读全文
posted @ 2014-12-29 10:06 Jowhok 阅读(144) 评论(0) 推荐(0) 编辑