立即学习:https://edu.csdn.net/course/play/25498/304531?utm_source=blogtoedu
for i,n in enumerate([10,20,30]):
print(i,n)
#同时输出索引和相应的值
遍历字典和元组的差别
立即学习:https://edu.csdn.net/course/play/25498/304531?utm_source=blogtoedu
for i,n in enumerate([10,20,30]):
print(i,n)
#同时输出索引和相应的值
遍历字典和元组的差别