## 返回函数就是闭包吗?

C/C++也有函数指针这一说, 也可以将其返回, 可我们并不称之为闭包

## Fluent Python中的解释

To summarize: a closure is function that retains the bindings of the free variables that exist when the function is defined, so that they can be used later when the function is invoked and the defining scope is no longer available.

Note that the only situation in which a function may need to deal with external variables

• 希望我将闭包的概念解释清楚了, 也欢迎提出疑问.