#装饰器作业
import time
def test2(time111):
    def deco(*args,**kwargs):   #args kwargs 的用途为传送参数
        print("!!!!!!!!!!!")
        time_format = '%y-%m-%d %X'
        time_cnrcnt =  time.strftime(time_format)
        time111(*args,**kwargs)
        print("记录时间为: %s " %time_cnrcnt)
    return deco

@test2
def test1():
    with open('1024','a+',encoding='utf8') as f:
        f.write("你本来就很美,非常美!\n")
    f.close()
    with open("1024",'r',encoding='utf-8') as f1:
        for i in f1:
            print(i)
    f.close()
test1()