【发布时间】:2022-11-02 22:47:15
【问题描述】:
import numpy as np
A = np.array([[2], [1], [3]])
A.shape # (3, 1)
A.reshape(3,0)
ValueError Traceback (most recent call last)
<ipython-input-12-771b3dbc4936> in <module>
----> 1 A.reshape(3,0)
ValueError: cannot reshape array of size 3 into shape (3,0)
【问题讨论】:
-
你想要的结果是什么?
标签: python