Python 常用语法

过滤空值

array = ['', '33', '44']
s = [x for x in array if x]
# print:['33', '44']