[Tutor] (no subject)

Steven D'Aprano steve at pearwood.info
Sun Nov 12 18:13:49 EST 2017


Sorry 劉權陞 <01patrickliu at gmail.com>, but this is an English-language 
mailing list. I do not understand what question you are asking.


On Sun, Nov 12, 2017 at 11:54:52PM +0800, 劉權陞 wrote:
> 我在使用closure 時,遇到了一些問題。
> 例如一個簡單的例子,
> 
> def f1(a):
>     def f2(b):
>         return a+b
>     return f2
> 
> f1=f1(10)
> 
> 這時f1會發生衝突 ,這是正常的嗎?


-- 
Steve


More information about the Tutor mailing list