Python之购物车 msg_list = [ ['iphone',8888], ['coffe',38], ['book',90], ['Tesla',100000], ['RR',1000000000] ] shopping_cart = [] salary = int(input('input your salary:')) while True: #计数器,给列表的物品赋值 index = 0 # 循环列表msg_list,并打印 for product in msg_list: pri…