摘要: 内置函数map(function, iterable, ...)讲传入迭代器的值映射为另一个新值的列表map还可以接受多个iterable作为参数,在第n次调用function时,将使用iterable1[n], iterable2[n], ...作为参数。filter(function, iterable)这个函数的功能是过滤出iterable中所有以元素自身作为参数调用function时返回True或bool(返回值)为True的元素并以列表返回,与系列第一篇中的my_filter函数相同。zip(iterable1, iterable2, ...)这个函数返回一个列表,每个元素都是一个元 阅读全文
posted @ 2012-12-16 16:01 Bug山Bug海 阅读(172) 评论(0) 推荐(0)