摘要: Python闭包先看一个例子:def outer(x): def inner(y): return x+y return innderadd = outer(8)print add(6)我们定义了一个方法outer,方法内部又定义了一个方法inner,方法outer返回值为... 阅读全文
posted @ 2014-08-27 17:32 棉花年度 阅读(226) 评论(0) 推荐(0)