一.数组的拼接 import numpy as np x=np.array([,,]) x2=np.array([,,])np.concatenate([x,x2]) 输出:array([1, 2, 3, 4, 5, 6]) grid=np.array( [[,,], [,,]]) np.concatenate([grid,grid]) 输出: array([[, , ], [, , ], [, , ], [, , ]]) np.concatenate([grid,grid],axis=) 输出