📜  python 查找列表中最高值的索引 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:22.943000             🧑  作者: Mango

代码示例3
numbers = 1,3,11,42,12,4001
highestnumber = -999
for i in numbers:
  if i > highestnumber:
    highestnumber = i
print(numbers.index(highestnumber))