What is the method to repeatedly output a list in Python?

In Python, you can use a for loop to iterate through a list and repeat the output. The specific method is as follows:

list = [1, 2, 3, 4, 5]  # 假设要重复输出的列表为list
n = 3  # 假设要重复输出的次数为n

for i in range(n):
    print(list)

In the above code, the list is repeated n times using a for loop. The output is:

[1, 2, 3, 4, 5]
[1, 2, 3, 4, 5]
[1, 2, 3, 4, 5]
bannerAds