python批量去除列表的空值和空格值的元素 Posted on 10 10 月, 2021 # 去除tags中的空值和空格值 for one in tagsList: if one == '' or one == ' ': tagsList.remove(one)