📜  python 通过布尔列表从列表中选择 - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:33.895000             🧑  作者: Mango
代码示例1
filtered_list = [i for (i, v) in zip(list_a, filter) if v] # filter is a list of booleans