lambda
摘要:
#map z = [1,2,3,4,56] def func(x): return x+1 ll = list(map(func,z)) print(ll) print(list(map(lambda x:x+1,z))) #filter 过滤 z = [1,2,3,4,56] def func(x): if x>1: return (x) ret ... 阅读全文
posted @ 2018-09-06 20:52 augustyang 阅读(179) 评论(0) 推荐(0) 编辑