列表

列表转字典

# -*- coding:utf-8 -*-
animals = ["cat", "dog", "bird"]
for index, value in enumerate(animals):
print index, value