風語·深蓝

Agile Methodology, HeadStorm And MindMap, they will change me.

导航

随笔分类 -  Python

摘要:转自:http://www.blogjava.net/vagasnail/articles/301140.html?opt=admin介绍下Python 中 map,reduce,和filter 内置函数的方法:一:mapmap(...) map(function, sequence[, sequence, ...]) -> list说明:对sequence中的item依次执行function(item),执行结果输出为list。例子:>>> map(str, range(5)) #对range(5)各项进行str操作['0', '1', 阅读全文

posted @ 2014-01-05 23:40 風語者·疾風 阅读(17361) 评论(2) 推荐(4) 编辑