On 12/11/17 15:54, 劉權陞 wrote: > 我在使用closure 時,遇到了一些問題。 > 例如一個簡單的例子, > > def f1(a): > def f2(b): > return a+b > return f2 > > f1=f1(10) > > 這時f1會發生衝突 ,這是正常的嗎?
Can you tell us what language this is? Or better still post an English translation? That's what most of us speak on this list... -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor