for index, line in enumerate
enumerate就是枚举的意思,把元素一个个列举出来,第一个是什么,第二个是什么,所以他返回的是元素line = [1,2,3,4,5,6,7,8,9]for i,j in enumerate(line): print(i,j)#以下是输出结果0 11 22 33 44 55 66 77 88 9#eg2:line = ["a","b","c","d","e"]for i,j in enume