我有一台numpy_array。就像[ a b c ]
一样。
然后我想把它和另一个NumPy数组连接起来(就像我们创建一个列表列表一样)。如何创建包含NumPy数组的NumPy数组?
我试着做了下面的事情,但没有任何运气
>>> M = np.array([])
>>> M
array([], dtype=float64)
>>> M.append(a,axis=0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'numpy.ndarray' object has no attribute 'append'
>>> a
array([1, 2, 3])
https://stackoverflow.com/questions/9775297
复制相似问题