📜  从字典中删除随机字符python代码示例

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

代码示例1
#the pop.item() method removes the last inserted item in Dictionary
#In python versions lower than 3.7 will remove a RANDOM ITEM

thisdict = {
  "brand": "Ford",
  "model": "Mustang",
  "year": 1964
}
thisdict.popitem()
print(thisdict)