python基础之取列表中最大值的索引值
'''取列表中最大值的索引值www.pythontutor.com'''list_group = [5,90,59,132,54]max_index = 0list_index = 0for num in list_group: if num > list_group[max_index]: max_index = list_index list_index += 1print(max_index)
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。