摘要: welcome to index pageUsername:lianPassword:abc123User has passed authenticationwelcome to home page welcomeldap++++++ 阅读全文
posted @ 2018-11-07 17:04 rongye 阅读(128) 评论(0) 推荐(0) 编辑
摘要: import timeuser,passwd = 'lian','abc123'def auth(func): def wrapper(*args,**kwargs): username = input("Username:").strip() password = input("Password: 阅读全文
posted @ 2018-11-07 11:58 rongye 阅读(107) 评论(0) 推荐(0) 编辑
摘要: import timedef timer(func): def deco(*args,**kwargs): start_time=time.time() func(*args,**kwargs) stop_time=time.time() print('the func run time is %s 阅读全文
posted @ 2018-11-07 11:40 rongye 阅读(144) 评论(0) 推荐(0) 编辑