一: 定义有参数的装饰器 其中 CheckFileByName 是进行验证的过程 二: 登陆方法 三: 实现装饰调用 转载于:https://www.cnblogs.com/LLWH134/p/9782262.html