摘要: tofile() fromfile()>>a = np.arange(0,12)>>a.shape = 3,4>>aarray([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]])>>a.tofile("a.bin... 阅读全文
posted @ 2015-02-07 20:48 fireflycmh 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 1.创建数组import numpy as npa=np.array([1,2,3,4],[4,5,6,7],[7,8,9,10])查看:a.shape | (3,4)a.shape = 4,3 | 改变为4*3形状 a.shape = 2,-1 | -1代表自动计算长度a.dtype... 阅读全文
posted @ 2015-02-07 20:01 fireflycmh 阅读(290) 评论(0) 推荐(0) 编辑