Q:1.1、optparse参数处理
--------------------------------------------------------------------------------------------------------------------------------------------------------
1、带参数装饰器执行步骤
1 #本地验证
2 user,passwd = "abc","123"
3
4 def auth(auth_type):
5 print("auth func:",auth_type)
6 def outer_wrapper(func):
7 def wrapper(*args,**kwargs):
8 print("wrapper func args:",*args,**kwargs)
9 username = input("Username:").strip()
10 password = input("Password:").strip()
11 if auth_type == "local":
12 if user == username and passwd == password:
13 print("