我们好比数据 c = np.array([[1,2,3],[4,5,6]])
改成2行3列: c.reshape(2,3)
改成3行2列: c.reshape(3,2)
我也不知道几行,反正是1列: c.reshape(-1,1)
'我也不知道几列,反正是1行: c.reshape(1,-1)
不分行列,改成1串’: c.reshape(-1)
京公网安备 11010502049817号