会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Great_kyle
温故而知新,学而时习之!
博客园
首页
新随笔
联系
订阅
管理
2017年4月18日
内置函数补充map、reduce和filter等
摘要: map函数:映射功能 map(function, iterable, ...):可迭代对象向函数function传入元素,并得到一个返回值. 1 >>> map(lambda x :x+1,[1,2,3.4]) 2 [2, 3, 4.4] 3 >>> map(lambda x :x+"_key",{
阅读全文
posted @ 2017-04-18 10:50 Great_kyle
阅读(219)
评论(0)
推荐(0)
编辑
公告