1 2 3 4 5 6 7
def training_log(func): def wrapper(*args, **kwargs): result = func(*args, **kwargs) print(result) return result return wrapper