python enumerate函數用法

http://www.cnblogs.com/linjiqin/p/4228896.html enumerate函數用於遍歷序列中的元素以及它們的下標html i = 0 seq = ['one', 'two', 'three'] for element in seq: print i, seq[i] i += 1 #0 one #1 two #2 three print '==
相關文章
相關標籤/搜索