📜  在 python 代码示例中添加列表

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

代码示例1
list_of_names=["Bill", "John", "Susan", "Bob", "Emma","Katherine"]
new_name="James"
list_of_names.append(new_name)
# The list is now ["Bill", "John", "Susan", "Bob", "Emma","Katherine", "James"]