import time
def test1():
time.sleep(3)
print(‘in the test1‘)
def test2():
print(‘in the test2‘)
test1()
test2()
装饰器之案例一
原文:https://www.cnblogs.com/zhouly1121/p/12149229.html