# coding: utf-8
# Inventory(存货,物品), rope(绳子), torch(火把), dagger(匕首)
Players_Inventory = {'arrow': 12,
'gld coin': 42,
'rope': 1,
'torch': 6,
'dagger': 1}
def display_inventory(inventory):
num_value = 0
for key, value in inventory.items():
print(str(value) + ' ' + key)
num_value += value
print(num_value)
print('Inventory:')
display_inventory(Players_Inventory)
好玩游戏的物品清单
最新推荐文章于 2021-10-28 23:41:12 发布