Python 过滤数组元素

1
2
list = [1,2,'',3,'','',4]
list = [i for i in list if i != '']

Python 过滤数组元素
https://celaraze.com/2021/08/18/python-filter-array-items/
作者
celaraze
发布于
2021年8月18日
许可协议