四川圣与卓专注绵阳梓潼网站设计 梓潼网站制作 梓潼网站建设
绵阳梓潼网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

python基础之取列表中最大值的索引值

'''
取列表中最大值的索引值
www.pythontutor.com
'''

list_group = [5,90,59,132,54]
max_index = 0
list_index = 0
for num in list_group:
    if num > list_group[max_index]:
        max_index = list_index
    list_index += 1
print(max_index)

网页标题:python基础之取列表中最大值的索引值
文章起源:http://myzitong.cn/article/pdoojs.html

其他资讯