摘要: import numpy as np x = np.array([[[0], [1], [2]]]) print(x) """x= [[[0] [1] [2]]] """ print(x.shape) # (1, 3, 1) x1 = np.squeeze(x) # 从数组的形状中删除单维条目,即把 阅读全文
posted @ 2017-11-14 18:11 AI菌 阅读(51781) 评论(0) 推荐(3) 编辑