📜  转换字典键 python 代码示例

📅  最后修改于: 2022-03-11 14:46:57.536000             🧑  作者: Mango

代码示例1
def rename_keys(d, trafo_dic):
    return dict([(trafo_dic.get(k), v) for k, v in d.items()])