#用enumerate函数,最好不要用index ,因为列表有相同的元素的时候,index就傻冒了for i,j in enumerate(('a','b','c')): print i,j 0 a1 b2 c