l = [11,22,33,55,"ss","zz"] for i,v in enumerate(l): print(i,v) #打印结果: # 0 11 # 1 22 # 2 33 # 3 55 # 4 ss # 5 zz