Python不定长参数的函数装饰器。
程序实例1:
import time
def my_decorator(func):
def wrapper(*args):
print("wrapper函数开始")
start_time = time.perf_counter()
func
Python不定长参数的函数装饰器。
程序实例1:
import time
def my_decorator(func):
def wrapper(*args):
print("wrapper函数开始")
start_time = time.perf_counter()
func