📜  如何在python代码示例中生成列表

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

代码示例2
# it appends a list into a list
list1 = [1,2,3,4,5]
list1.append([6,7])
# ouput = [1, 2, 3, 4, 5, [6, 7]]