python代码 a = [[123, 456, 789, 123],[124, 455, 788, 124]] width = map(lambda x:x[1] - x[3], a) # 求a中各个元素中,第2和第4的差值 list(width) 总结 python3以后,好像一定要加list(width)map(function, iteration),第一个参数为一个函数,第二个参数为一个可迭代对象