Python 如何将项目添加到字典中的列表中

Python 如何将项目添加到字典中的列表中,python,dictionary,Python,Dictionary,如何在“黄金”键下存储的数字上加50,沃森: inventory = { 'gold' : 500, 'pouch' : ['flint', 'twine', 'gemstone'], # Assigned a new list to 'pouch' key 'backpack' : ['xylophone','dagger', 'bedroll','bread loaf'], 'pocket': ['seashell','strange berry','lint

如何在“黄金”键下存储的数字上加50,沃森:

inventory = {
    'gold' : 500,
    'pouch' : ['flint', 'twine', 'gemstone'], # Assigned a new list to 'pouch' key
    'backpack' : ['xylophone','dagger', 'bedroll','bread loaf'],
    'pocket': ['seashell','strange berry','lint'] 
}
今天是黄金日吗?
 inventory['gold'] += 50