📜  如果找不到 python 字典 - Python 代码示例

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

代码示例1
value = d.get(key)                # Null
value = d.get(key, "empty")        # empty