📜  从列表中删除列表 python 代码示例

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

代码示例6
>>> a = range(1, 10)
>>> [x for x in a if x not in [2, 3, 7]]
[1, 4, 5, 6, 8, 9]