2014年4月17日

一段关于python 闭包的例子

摘要: >>> def counter(a=0):... count = a... def incr():... b = 1 + count... return b... return incr...>>> count = counte... 阅读全文

posted @ 2014-04-17 17:51 kramer 阅读(343) 评论(0) 推荐(0) 编辑

导航