摘要: numpy 使用 1.使用 array 定义矩阵 dataSet = array([[1.0,1.1],[1.0,1.0],[0.0,0.0],[0,0.1]]) 2.使用 shape 返回矩阵的行数(列数) dataSet.shape[0] #4dataSet.shape[1] #2 3.使用 t 阅读全文
posted @ 2016-05-06 17:40 oftenlin 阅读(14556) 评论(0) 推荐(0) 编辑