摘要: 创建元类的基类(Singleton) ` from threading import RLock class SingletonType(type): single_lock = RLock() def __call__(cls, *args, **kwargs): with SingletonTy 阅读全文
posted @ 2021-03-26 19:41 mlj0503 阅读(93) 评论(0) 推荐(0) 编辑