摘要:from functools import wraps class logit(object): def __init__(self, logger): self.logger = logger def __call__(self, func): @wraps(func) def wrapped_function(*args, ... 阅读全文
posted @ 2019-07-15 16:20 1553 阅读(702) 评论(0) 推荐(0) 编辑