摘要: import numpy as npa = np.array([[1,2,3],[4,3,2],[6,3,5]])print(a) [[1 2 3] [4 3 2] [6 3 5]] print(a.ndim) # array的维度 2 print(a.dtype) # array元素的数据类型 int32 print(a.shape) # array每个维度的大小 (3, ... 阅读全文
posted @ 2018-03-23 15:57 秦qin 阅读(309) 评论(0) 推荐(0) 编辑