def a(n):
print(1)
def inner(b="1"):
n(b)
# print(b)
return inner
@a
def foo(b):
print("foo")
foo()
当
装饰器如何装饰带参数的函数
猜你喜欢
转载自www.cnblogs.com/duoduoyichen/p/10309053.html
今日推荐
周排行