"""
闭包函数
函数内部调用了函数外部的局部变量,并且外部函数返回内部函数即为闭包函数
def func1():
a = 1001
def func2():
return a
return func2
print(func1()())