检查字典中是否存在指定的键if "name" in person: print("字典中存在键'name'")检查字典中(zhong)是否不存在(zai)指定的键if "address" not in person: print("字典中不存在键'address'")