📜  通过键列表过滤dict python代码示例

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

代码示例1
dict_you_want = { your_key: old_dict[your_key] for your_key in your_keys }