enumerate的用法 enumerate([list1,list2]) ,循环的时候自动获取其list的下标和值 for index,value in enumerate([list]): print(index,value) 如图: