摘要: 一,私有属性判断法 class Single: _obj = None _init_flag = True def __new__(cls, *args, **kwargs): if cls._obj == None: cls._obj = super().__new__(cls) return c 阅读全文
posted @ 2020-07-25 16:40 Franciszw 阅读(185) 评论(0) 推荐(0) 编辑