码迷,mamicode.com
首页 > 其他好文 > 详细

numpy属性

时间:2017-11-16 21:58:56      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:nump   color   技术   sha   ges   imp   nbsp   矩阵   es2017   

1.将列表转换为矩阵的方法:np.array()

import numpy as np
array = np.array([[1, 2, 3],[2, 3, 4]])

2.numpy的属性:ndim, shape, size

技术分享

ndim:空间维数,  shape:几行几列,  size:元素个数

3.

 

numpy属性

标签:nump   color   技术   sha   ges   imp   nbsp   矩阵   es2017   

原文地址:http://www.cnblogs.com/keye/p/7846211.html

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