代码示例:(标识:python_dictionary_in)
python_dictionary_in.py
thisdict =	{
  "brand": "Porsche",
  "model": "911",
  "year": 1963
}
if "model" in thisdict:
  print("Yes, 'model' is one of the keys in the thisdict dictionary")
运行结果: