摘要:
1.基础使用 # 准备一个基类(父类)class BaseClass: def talk(self): prin... 阅读全文
posted @ 2021-09-15 22:44
阿无oxo
阅读(34)
评论(0)
推荐(0)
摘要:
方式一:装饰器函数 def Singleton(cls): instance = {} def wrapper(*arg... 阅读全文
posted @ 2021-09-15 22:21
阿无oxo
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号