摘要: # 高阶函数:map/reduce/filter/sort# map()函数接收两个参数:函数名、iterable# 例如计算[1,2,3,4,5] 的平方根# 老办法:lists = []def new(x): for i in x: lists.append(i * i) return (lis 阅读全文
posted @ 2019-01-21 15:20 牛屎虫 阅读(201) 评论(0) 推荐(0) 编辑