# 定义售货系统类 class Store(): # 初始化必要的属性 def __init__(self): # 初始化默认值 # 商品 self.products = { 'A1':{ 'name':'A1', 'price':2, 'count':0, }, 'A2':{ 'name':'A2', 'price':3, 'count':0, }, 'A3':{ 'name':'A3', 'price':4, 'count':0, }, 'A4':{ 'name':'A4', 'price':5, 'count':0, }, 'A5':{ 'name':'A5', 'price':8, '...