我想从python中的字符串列表中删除所有空字符串.
我的想法是这样的:
while '' in str_list: str_list.remove('')
有没有更多的pythonic方式来做到这一点?
python arrays string list
arrays ×1
list ×1
python ×1
string ×1