📜  python 删除 dict 键值 - Python 代码示例

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

代码示例2
# The pop() method can accept either one or two parameters:
# The name of the key you want to remove (mandatory).
# The value that should be returned if a key cannot be found (optional).
dictionary.pop(key_to_remove, not_found)