print '***数组排序问题***' #数组的构建问题,初始化使用array() ary=array(zeros(4)) ary[0]=0.1 ary[1]= 0.6 ary[2]= 0.5 ary[3]= 0.7 #有-号,降序排列 #无-号,升序排列 sortindex = argsort(ary) for id in sortindex: print '索引:',id for i in ary: print i 1. 2. 3. 4. ...