📜  python list add first - Python 代码示例

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

代码示例3
# list.insert(before, value)
list = ["a", "b"]
list.insert(0, "c")
print(list)     # ['c', 'a', 'b']