2014年7月30日

map和lambda

摘要: 同事问我python里,比如一个列表:a = ['1', '2', '3']如何变成:b = ['1x', '2x', '3x']好吧,果断不知道…原来pthon中有map函数,查看帮助文档:map(...) map(function, sequence[, sequence, ...]) -... 阅读全文

posted @ 2014-07-30 15:15 Noah.Zhang 阅读(535) 评论(0) 推荐(0) 编辑

导航