def wai(x): def nei(y): return x * y return nei i = wai(3) print(i,type(i)) print(i(6))
python闭包
原文:https://www.cnblogs.com/ssxsy/p/9127529.html