📅  最后修改于: 2022-03-11 14:45:56.517000             🧑  作者: Mango
代码示例1
>>> a = ['Mary', 'had', 'a', 'little', 'lamb']
>>> for i in range(len(a)):
... print(i, a[i])
...
0 Mary
1 had
2 a
3 little
4 lamb