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

 

posted on 2018-01-21 17:59  海燕。  阅读(478)  评论(2编辑  收藏  举报