numpy … >>>import numpy as np >>>a=np.array([[1,2,3],[4,5,6]]) >>>a[...] #遍历所有元素 >>> a[...,0] >>> array([1,4])