一、stack() 例子如下: import numpy as np a = [1,2,3] b = [4,5,6] np.stack((a,b),axis=0) >>> array([[1, 2, 3], [4, 5, 6]]) np.stack((a,b),axis=1)