简单的装饰器
# import time
# def timr(func):
# def inner(*ages,**kwargs):
# start=time.time()
# ret=func(*args,**kwargs)
# print(time.time()-start)
# return ret
# return inner
# @timr
# def func(a):
# print('大家好,元旦放假了')
# return '终于放假了'