摘要: 装饰器 # 装饰器 def singleton(cls): instance = {} def inner(*args, **kw): if cls not in instance: instance[cls] = cls(*args, **kw) return instance[cls] retu 阅读全文
posted @ 2021-11-08 17:14 wztshine 阅读(92) 评论(0) 推荐(0) 编辑