摘要: class Singleton: __obj = None __initiated = False def __new__(cls, *args, **kwargs): if cls.__obj is None: cls.__obj = super(Singleton, cls).__new__(c 阅读全文
posted @ 2022-09-15 10:45 ascertain 阅读(13) 评论(0) 推荐(0) 编辑