for index,item in enumerate(product_list): # print(product_list.index(item),item) print(index,item)
==========================
a=[1,2,3]
for i in enumerate(a):
print(i)
posted on 2017-08-17 22:34 aiaiduo 阅读(108) 评论(0) 编辑 收藏 举报