• 2022-06-12
    a=array([[0,1,2,3], [4,5,6,7], [8,9,10,11], [12,13,14,15]]) b=array([[16,17,18,19], [20,21,22,23], [24,25,26,27], [28,29,30,31]]) 通过语句np.concatenate((a,b),axis=1)可以产生 array([[0,1,2,3,16,17,18,19], [4,5,6,7,20,21,22,23], [8,9,10,11,24,25,26,27], [12,13,14,15,28,29,30,31]])
  • 举一反三