2017年8月9日

摘要: Map会将一个函数映射到一个输入列表的所有元素上 map(function_to_apply, list_of_inputs) items = [1, 2, 3, 4, 5] squared = list (map(lambda x: x**2, items)) number_list = rang 阅读全文
posted @ 2017-08-09 14:40 yingchen 阅读(141) 评论(0) 推荐(0)

导航