📜  如何将符号添加到列表的某个部分 python 代码示例

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

代码示例1
# The insert() method inserts an element to the list 
# at a given index.
# Syntax: list_name.insert(index, element)
my_list = ["Add", "Answer"]
my_list.insert(1, "Grepper")
print (my_list)
> ['Add', 'Grepper', 'Answer']


### By Dentedghost ###