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
[[
]
[
2
]]
Out[
27
]:(
)
28
相关分类