dic = {'0':a, '1':b, '2':c}
for i, item in enumerate(dic): 或者 for i, item in dic.items():
print('{i} : {item}')
0 : a
1 : b
2 : c
dic = {'0':a, '1':b, '2':c}
for i, item in enumerate(dic): 或者 for i, item in dic.items():
print('{i} : {item}')
0 : a
1 : b
2 : c