摘要: decorator # 无参仅需2层函数 def log_print(func): def wrapper(*args, **kwargs): print("before " + func.__name__) result = func(*args, **kwargs) print("after " 阅读全文
posted @ 2024-11-06 09:39 zhaoqiang1980 阅读(1) 评论(0) 推荐(0) 编辑