代码示例:(标识:demo_python_dictionary_del_2)
demo_python_dictionary_del_2.py
thisdict =	{
  "brand": "Porsche",
  "model": "911",
  "year": 1963
}
del thisdict
print(thisdict) #this will cause an error because "thislist" no longer exists.
运行结果: