2、[exp1 if condition else exp2 for x in data]. 此处if…else,当data中的数据满足if条件时,exp1,否则exp2,最后生成一列表.
確定! 回上一頁