摘要: 1.不带参数 import time def showtime(func): def wrapper(): start_time = time.time() func() end_time = time.time() print('spend is {}'.format(end_time - sta 阅读全文