摘要: 介绍下Python 中 map,reduce,和filter 内置函数的方法: 一:map 说明: 对sequence中的item依次执行function(item),执行结果输出为list。 例子: 二:reduce 说明: 对sequence中的item顺序迭代调用function,函数必须要有 阅读全文
posted @ 2018-04-20 09:44 一只天真的小蜗牛 阅读(150) 评论(0) 推荐(0)