python中的嵌套数组,例如数组a:
怎么创建一个新的数组b,使得b=[1,1,1,1,1],即获得a数组每一项的第一个
最简单的b = list(map(lambda x: x[0], a))print(b)