def outer(): a= 1 def inner(a): print(a) inner(a) 来源:https://www.cnblogs.com/shuoran/p/11640293.html 标签 闭包 python