📅  最后修改于: 2022-03-11 14:46:57.752000             🧑  作者: Mango
# declare equipment as a dictionary
player_equip_dict = {
"Helmet": "",
"Right Hand": "",
"Left Hand": "",
"Chest": "",
"Back": "",
"Legs": "",
"Feet": "",
}
# assign an item to equipment
player_equip_dict.update({"Right Hand": "sword"})
# remove an item from equipment
player_equip_dict.update({"Right Hand": ""})