摘要: ''' 装饰器: 不修改源代码,不修改其调用方法 ''' import getpass import time usr, pwd = "xiaobai", "111111" #装饰器 def auth(auth_type): def outter_wrapper(func): def wrapper(*args, **kwargs): if auth_type == "loca... 阅读全文
posted @ 2018-03-28 18:10 与君同悦 阅读(139) 评论(0) 推荐(0)