🌈 搜索
📅  最后修改于: 2022-03-11 14:47:02.338000             🧑  作者: Mango
good = [x for x in mylist if x in goodvals] bad = [x for x in mylist if x not in goodvals]