摘要: # 使用类的方式写 带参数的装饰器 import time class GetExecTime: def __init__(self, sec): self.sec = sec def __call__(self, func): self.func = func return self.wrappe 阅读全文
posted @ 2022-06-09 17:34 zanze 阅读(260) 评论(0) 推荐(0)