Pythonのループカウンタ付 forループ tappe 14年前 >>>for cnt, item in enumerate(seq): print cnt, item 0 one 1 two 2 three というように、enumerate使えば、シーケンスをループカウンタ付で回せる。