python list解析, map,生成器表达式
def inc(x): return x+10L = [1,2,3,4]print map(inc,L)print map((lambda x: x+10),L)def add(x,y): return x+ylist1 = [11,22,33]list2 = [44,55,66]print map(add,list1,list2)输出: [11, 12, 13, 14]