🌈 搜索
📅  最后修改于: 2022-03-11 15:00:18.380000             🧑  作者: Mango
ints = [1,2,3,4,'5','6'] for idx, val in enumerate(ints): print(idx, val) #Output 0 1 1 2 2 3 3 4 4 '5' 5 '6'