在 Python 中打印列表内容,可以使用 print() 函数。以下是一个简单的示例:

my_list = [1, 2, 3, 4, 5]
print(my_list)

这将打印出列表的内容:

[1, 2, 3, 4, 5]
Python 打印列表内容 - 简单教程和示例