的原型reshape()是那个reshape(shape, order="C"),形状的类型是元组。所以我们应该用 来调用这个函数myarray.reshape((1000, 1, 32, 32)),但是我发现很多用myarray.reshape(1000, 1, 32, 32),为什么?
reshape()
reshape(shape, order="C")
myarray.reshape((1000, 1, 32, 32))
myarray.reshape(1000, 1, 32, 32)
python numpy
numpy ×1
python ×1