>>> import numpy as np
>>> a=np.array([[1,2,3],[3,5,6]])
>>> b=np.array([1,2,3,4,5],ndmin=2)
>>> print(b)
[[1 2 3 4 5]]
>>> b.shape
(1, 5)
>>> com=np.array([a,b,c])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'c' is not defined
>>> com=np.array([a,b,c])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'c' is not defined
>>> c=np.array([[3,2,3],[3,5,6]])
>>> com=np.array([a,b,c])
>>> com
array([array([[1, 2, 3],
[3, 5, 6]]), array([[1, 2, 3, 4, 5]]),
array([[3, 2, 3],
[3, 5, 6]])], dtype=object)
>>> com.shape
(3,)
>>> b.shape
(1, 5)
>>> c.shape
(2, 3)
>>>
比如这个怎么看维度啊?(1, 5) 这个是二维的图怎么画出来啊