#简单购物车程序:money_all=0tag=Trueshop_car=[]shop_info={'apple':10,'tesla':100000,'mac':3000,'lenovo':30000,'chicken':10,}while tag: for k,v in shop_info.items(): print('商品名:{name}价格:{price}'.format(name=k,price=v)) goods=input('请输入你要买的商品:').strip() if len…