python 删除list里面的空字符

dat_lst=list(filter(None, dat_lst))

 

# 如果是listoflist就要多嵌套一层循环

posted @ 2021-07-28 10:29  Shilo  阅读(96)  评论(0编辑  收藏  举报