python--获取list下标和值

for index, value in enumerate(list):
    print index, value

 

posted @ 2014-07-01 22:43  helloweworld  阅读(944)  评论(0编辑  收藏  举报