获得2d Python数组的最高指数

时间:2018-05-26 12:05:21

标签: python arrays sorting

我正在使用Python 2.7,我有一个像这样的二维数组:

  1. 5.854,7.225,4.458,1.834,0.566,0.14,0.029,0.005,0.001,0.0
  2. 9.39,11.588,7.15,2.941,0.907,0.224,0.046,0.008,0.001,0.0
  3. 7.53,9.293,5.734,2.359,0.728,0.18,0.037,0.007,0.001,0.0
  4. 4.026,4.968,3.066,1.261,0.389,0.096,0.02,0.003,0.001,0.0
  5. 1.614,1.992,1.229,0.506,0.156,0.039,0.008,0.001,0.0,0
  6. 我想获得数组中四个最高值的索引。

    所以list(map(max,ge))得到的值最高但是我需要索引,所以上面的数据是[1,1],[1,0],[2,1], [0,1],我不知道如何实现这个目标?

0 个答案:

没有答案