摘要: ``` def my_decorator(func): def wrapper(*args, **kwargs): print(args) if args[0].cache: print("GET CACHE > ", args[0].cache) args[0].cache = "cache" return func(*args, **kwargs) return wrapper class M 阅读全文
posted @ 2020-05-09 11:32 huim 阅读(186) 评论(0) 推荐(0) 编辑