装饰器2
摘要:#-*- coding:utf-8 -*- static = False def login(func): #这里func,用来把被修饰的函数名以参数传可以入进来,然后 #就可以在装饰器函数中的任意位置进行调用被装饰的函数,就是18line def inner(): name_ = 'chenna'...
阅读全文
posted @ 2017-06-19 21:02
posted @ 2017-06-19 21:02
posted @ 2017-06-19 20:42