Python @get_time 装饰器 @get_time 装饰器可以用于计算函数的执行时间。 示例: import time def get_time(func): def wrapper(*args, **kwargs): start_time = time.time() func