如何以原始二进制格式存储 2D numpy
ndarray
根据文档,
ndarray.tofile()
format
np.save()
.npy
with open('out', 'wb') as f: f.write(arr.tobytes())
应该做