📜  python3 遍历索引 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:20.695000             🧑  作者: Mango

代码示例2
colors = ["red", "green", "blue", "purple"]

for i in range(len(colors)):
    print(colors[i])