python内置函数,传入列表,返回索引值与列表元素

for index, item in enumerate(list1):

 print index, item

 posted on 2018-08-27 11:41  庭明  阅读(139)  评论(0编辑  收藏  举报