def aa(f):
def bb():
with open(‘tese.txt’,‘w’)as w:
w.write(‘1291666244\n620371’)
return f()
return bb
def aaa(f):
def bbb():
zh=input(‘请输入账号:’)
pass1=input(‘请输入密码:’)
with open(‘tese.txt’, ‘r’)as r:
if zhr.readline().strip() and pass1r.readline():
return f()
else:
return ‘登陆失败’
return bbb
哪个装饰器在上面先执行那个,
#写完第一个装饰器(@aa)后先运行一下写入数据再写第二个装饰器