摘要: import numpy as np A = np.array([ [1, 2, 3, 4], [5, 6, 7, 8], ], dtype=int) # dtype指定数据类型int float print(A) print(A.size) # 元素的总个数 print(A.ndim) # 维度 print(A.shape) # 形状 (2, 4) 小元组 两行四列 ... 阅读全文
posted @ 2018-11-30 17:38 jack-chen666 阅读(146) 评论(0) 推荐(0) 编辑