题目内容
游戏玩家物品清单汇总:定义一个函数,接收玩家的物品stuff={‘rope’: 1, ‘torch’:6, ‘gold coin’: 42}。输出:inventory:1 rope6 torch42 gold cointotal number of items:49--------------------------------------defdisplay(stuff):print('(1)')fork,vin(2):print((3)+''+k)print('totalnumberofitems:',(5)((4)))stuff={'rope':1,'torch':6,'goldcoin':42}display(stuff)
查看答案
搜索结果不匹配?点我反馈