Python 数组的遍历

arr = ['a','b','c']
for each in arr:
  print(each)

 

#https://blog.csdn.net/q54244125/article/details/89294895    
list = ["a", "b", "c", "d", "e"]
for index, value in enumerate(list):
    print(index, value)

 

posted @ 2020-03-04 17:05  古兴越  阅读(4529)  评论(0编辑  收藏  举报