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')

相关文章: