📜  如何在 python 代码示例中使用 for 循环

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

代码示例6
a_list = [1,2,3,4,5]

#this loops through each element in the list and sets it equal to x
for x in a_list:
    print(x)