📜  遍历数组 python 代码示例

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

代码示例3
colors = ["red", "green", "blue", "purple"]
i = 0
while i < len(colors):
    print(colors[i])
    i += 1