摘要: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
posted @ 2017-08-09 14:40
posted @ 2017-08-07 00:07
posted @ 2017-08-02 16:50