📌  相关文章
📜  删除所有出现 - Python 代码示例

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

代码示例1
>>> x = [1, 2, 3, 4, 2, 2, 3]
>>> while 2 in x: x.remove(2)
>>> x
[1, 3, 4, 3]