列表遍历

lstTmp = ["1","2","3",""]
lstTmp = [x for x in lstTmp if x != '']
print(lstTmp)
原文地址:https://www.cnblogs.com/countryboy666/p/14501965.html