摘要: 我们可以做一个switch case的模式 #filter a = [1,2,3,4] filter(lamda x:x%2,a) [1,3] #map 返回序列 为对原序列每个元素分别调用function获得的可以传入多个序列 但是function 也要有相应多的参数 map(lambda x,y 阅读全文
posted @ 2017-07-01 17:03 nerdlerss 阅读(178) 评论(0) 推荐(0) 编辑