关键字 Share Python 关键字 enumerate 组合为:索引 元素 12345678seq = ['one','two','three']for i,element in enumerate(seq): print(i,element)结果:0 one1 two 2 three