python中的排序问题numpy包中的argsort函数是对一个数组进行升序排列,那对一个数据进行降序排列有没有什么函数或者什么方法呢?[解决办法]# ascendingnumpy.argsort(x)# descending numpy.argsort(-x)或者如楼上说的,用[::-1]反转