product_list =[ ('huawei',3000), ('hongmiNote3',3000), ('sanxing',2600), ('ThinkPad870',15000), ('Iphone8',5600), ('HuaweiP20',3300)]#商品列表shopping_list = []#购物清单while True: salary = input('Input you salary:') #输入薪水 if salary.isdigit(): #判断输入的薪水是否是数字…