Weak variable scope control in Python
Variable scope in Python is very similar to that in C.
Functions can access any variable in its upper scope. It's a good feature for closure. However, It's not satisfying in some situation.
Let's u
原创
2013-02-18 20:02:40 ·
246 阅读 ·
0 评论