已知字典 dic={ 'apple':6 'orange':5 'banana':3 'pear':8 'watermelon':10} 存放了水果的
已帮助 人
已知字典 dic={ "apple":6, "orange":5, "banana":3, "pear":8, "watermelon":10} ,存放了水果的名称和价格。试编写程序,实现以下功能: 1、接收用户输入的价格(假设为整数) 2、计算 高于用户输入价格 的所有水果的总价

回答
共1条回复-
17
