[~]|5> x = np.array([(1.0, 4.0,), (2.0, -1.0)], dtype=[('f0', '<f8'), ('f1', '<f8')])[~]|6> x.view(np.float64).reshape(x.shape + (-1,))array([[ 1., 4.], [ 2., -1.]])
欢迎分享,转载请注明来源:内存溢出
[~]|5> x = np.array([(1.0, 4.0,), (2.0, -1.0)], dtype=[('f0', '<f8'), ('f1', '<f8')])[~]|6> x.view(np.float64).reshape(x.shape + (-1,))array([[ 1., 4.], [ 2., -1.]])
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)