def get_keys(d, value):
return [k for k,v in d.items() if v == value]
get_keys({'a':'001', 'b':'002',"c":'001'}, '001')
转载于:https://www.cnblogs.com/fendoudemangguoailiulian/p/9259991.html
def get_keys(d, value):
return [k for k,v in d.items() if v == value]
get_keys({'a':'001', 'b':'002',"c":'001'}, '001')
转载于:https://www.cnblogs.com/fendoudemangguoailiulian/p/9259991.html