python 循环生成列表+if+if else
只有if:
[exp for x in data if condition]
if else:
[exp1 if condition else exp2 for x in data]
[返回]