📌  相关文章
📜  从列表值中删除元素 - Python 代码示例

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

代码示例1
>>> a=[1,2,3]
>>> a.remove(2)
>>> a
[1, 3]
>>> a=[1,2,3]
>>> del a[1]
>>> a
[1, 3]
>>> a= [1,2,3]
>>> a.pop(1)
2
>>> a
[1, 3]
>>>