可以使用for循环来依次打印列表里的数,示例如下:
my_list = [1, 2, 3, 4, 5] for num in my_list: print(num)
运行以上代码会依次打印出列表里的每个数:
1 2 3 4 5