Équipement de joueur de fabrication de python
# 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": ""})
Stupid Sardine