摘要: #登录认证装饰器(有参装饰器) def auth(role): #auth可以有任意多个参数 from core import admin, stu, teacher def login_auth(func): #由于语法糖的限制,login_auth的参数只能是被装饰对象的名称 def wrapp 阅读全文