📜  python 检查 dict 中是否为 false - Python 代码示例

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

代码示例1
a_dictionary = {"a": 1, "b": 2}
contains_1 = 1 in a_dictionary.values()
print(contains_1)