天天看點

提卻字典中相同的元素

擷取字典中值為False的

dic = {"a":False,'b':True,'c':False}

p1 = dict((key, value) for key, value in dic.items() if value!=True)