1 作用域:L_E_G_B
x = 10
def f():
t = 5
def inner():
count = 7
print a
return 1
2 高阶函数 (满足条件之一)
1 函数名可以作为参数输入
2 函数名可以作为返回值
3 闭包
关于闭包,闭包=函数块+定义函数时的环境
Autor:VincentAdamNemessis
E-mail:vincent5519@yeah.net
QQ:3377299629
Wechat:ZTXLoveC3344