摘要: from functools import wraps import time def timefn(fn): """计算性能的修饰器""" @wraps(fn) def measure_time(*args, **kwargs): t1 = time.perf_counter() result = 阅读全文
posted @ 2022-06-09 14:05 Hany47315 阅读(57) 评论(0) 推荐(0) 编辑