📜  如何在python代码示例中的列表中添加多个项目

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

代码示例1
fruits = ["apple","charry","orange"]
fruits.extend(("banana","guava","rasbarrry"))
print(fruits)