np.array与np.ndarray区别

(Numpy中ndarray和array的区别是什么?我在哪儿能够找到numpy中相应的实现?)

答:Well, np.array is just a convenience function to create an ndarray, it is not a class itself. 
(嗯,np.array只是一个便捷的函数,用来创建一个ndarray,它本身不是一个类)

You can also create an array using np.ndarray, but it is not the recommended way. From the docstring of np.ndarray: 
(你也能够用np.ndarray来创建,但这不是推荐的方式。来自np.ndarray的文档:)

posted @ 2018-06-21 17:33  dylan9  阅读(2677)  评论(0编辑  收藏  举报