把数据的某一维到序,例如
a = numpy.array([ [1,2,3],[4,5,6] ])
b = a[:,::-1]
b的结果为
[3,2,1],
[6,5,4]
posted on 2017-09-12 16:00 兔子二 阅读(280) 评论(0) 编辑 收藏 举报