码迷,mamicode.com
首页 > 编程语言 > 详细

python 二维数组 转 矩阵

时间:2019-05-02 00:37:28      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:array   输出   class   ini   numpy   nump   维数   code   数组   

 

x = numpy.array([[1,2,3],[4,5,6],[7,8,9]])
print x
print x.shape

输出

[[1 2 3]
 [4 5 6]
 [7 8 9]]
(3L, 3L)
[Finished in 0.2s]

 

python 二维数组 转 矩阵

标签:array   输出   class   ini   numpy   nump   维数   code   数组   

原文地址:https://www.cnblogs.com/sea-stream/p/10801261.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!