📜  python delete none from list - Python 代码示例

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

代码示例1
>>> L = [0, 23, 234, 89, None, 0, 35, 9]
>>> [x for x in L if x is not None]
[0, 23, 234, 89, 0, 35, 9]