numpy.matrix.getA# method matrix.getA()[源代码]# 将 self 作为 ndarray 对象返回. 等价于 np.asarray(self) . 参数: None 返回: retndarrayself 作为 ndarray 示例 Try it in your browser! >>> x = np.matrix(np.arange(12).reshape((3,4))); x matrix([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]]) >>> x.getA() array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]]) Go BackOpen In Tab