📅  最后修改于: 2022-03-11 14:46:42.931000             🧑  作者: Mango
#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)