📅  最后修改于: 2022-03-11 14:45:30.756000             🧑  作者: Mango
代码示例1
example_list = ["A", "B", "C"]
for counter, letter in enumerate(example_list):
print(counter, letter)
# Output -
# 0 A
# 1 B
# 2 C