📌  相关文章
📜  python eliminar elementos de un diccionario - Python 代码示例

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

代码示例1
>>> meal = {'fats': 10, 'proteins': 10, 'carbohydrates': 80}
>>> [meal.pop(key) for key in ['fats', 'proteins']]
[10, 10]
>>> meal
{'carbohydrates': 80}