函数-函数进阶-闭包 def func(): n = 10 def func2(): print('func2', n) return func2 f = func() print(f) f() 执行结果 func2: 10 这就是闭包