numpy.ravel(a, order='C') Return a flattened array numpy.chararray.flatten(order='C') Return a copy of the array collapsed into one dimension numpy.squeeze(a, axis=None) Remove single-dimensional entries from the shape of an array. 相同点: 将多维数组 降为 一维数组…
flatten是numpy.ndarray.flatten的一个函数,其官方文档是这样描述的: ndarray.flatten(order='C') Return a copy of the array collapsed into one dimension. Parameters: order : {‘C’, ‘F’, ‘A’, ‘K’}, optional ‘C’ means to flatten in row-major (C-style) order. ‘F’ means to f…