satomacoto
September 30, 2009
Pythonでインデックス付きのリストを生成する
>>> for i, v in enumerate(['foo', 'bar', 'baz']):
... print i,v
...
0 foo
1 bar
2 baz
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment