根据官方文档:
示例:
sen = ['today', 'is', 'a'] print(sen) sen.extend([3] * 3) print(sen)
输出:
['today', 'is', 'a'] ['today', 'is', 'a', 3, 3, 3]