#为什么a.reshape((1,3)) 和a.reshape((3,1))输出结果一样?a = np.array([1,2,3])
a.reshape((1,3)) print(a) a.shape [[1] [2] [3]] Out[27]:(3, 1) a.reshape((3,1)) print(a) a.shape [[1] [2] [3]] Out[28]:(3, 1)
a.reshape((1,3)) print(a) a.shape [[1] [2] [3]] Out[27]:(3, 1) a.reshape((3,1)) print(a) a.shape [[1] [2] [3]] Out[28]:(3, 1)
2018-09-23
举报