【发布时间】:2016-03-25 06:44:15
【问题描述】:
我有一个数组A,其形状为(480, 640, 3),还有一个数组B,其形状为(480, 640)。
如何将这两个附加为一个形状为(480, 640, 4) 的数组?
我尝试了np.append(A,B),但它没有保持尺寸,而axis 选项导致ValueError: all the input arrays must have same number of dimensions。
【问题讨论】:
标签: python arrays numpy append