//排序并获取index的顺序:4,7,2,9-->9,7,4,2-->4,2,1,3 Array.prototype.getIndex=function(){ var orderLength = this.length; var temp,tp; var c=[]; for(var l=0;l<orderLength;l++){ c[l]=l; } for(var u=0;u<orderLength;u++){ for (var v=0;v<orderLength-u-1;
以下内容来自链接:https://blog.csdn.net/qq_42648305/article/details/89634186 遍历pd.Series的index和value的方法如下,python built-in list的enumerate方法不管用 for i, v in s.items(): print('index: ', i, 'value: ', v)#index: a value: 1#index: b value: 2#index: c value: 3#index: