📜  对于列表理解,python 返回 true - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:24.680000             🧑  作者: Mango

代码示例1
# instead of using filter, use map for list comprehension
[x for x in t_f_list if x % 2 == 0] # returns list of true and false elements