闭包

def puter():
    a=1
    def inner():
        print(a)
    return inner
i=outer()
i()
原文地址:https://www.cnblogs.com/qsmyjz/p/13166814.html