📜  获取数组python代码示例中最大值的索引

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

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