- 博客(1)
- 收藏
- 关注
原创 闭包
fs = [] def a(): print "a" return 1 def b(): print "b" return 2 def c(): print "c" return 3 def fun(): fs.append(a) fs.append(b) fs.append(c)
2015-01-07 11:11:23 196
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
fs = [] def a(): print "a" return 1 def b(): print "b" return 2 def c(): print "c" return 3 def fun(): fs.append(a) fs.append(b) fs.append(c)
2015-01-07 11:11:23 196
TA创建的收藏夹 TA关注的收藏夹
TA关注的人