摘要: import numpy as np label = np.array([[1,2,3,4],[5,6,7,8]])print (label.shape)label = label[np.newaxis, ...]print (label.shape) 结果: [[1 2 3 4] [5 6 7 8 阅读全文
posted @ 2017-07-13 17:09 fanrupin 阅读(509) 评论(0) 推荐(0) 编辑