class Vending_Machine(object): def __init__(self): # 投币余额 self.amts = 0 self.goods = { "A1": [2, 0], "A2": [3, 0], "A3": [4, 0], "A4": [5, 0], "A5": [8, 0], "A6": [6, 0] } self.box = {"1": 0, "2": 0, "5": 0, "10": 0} # 投币 def insert_coin(self, amt): if amt not in [10, 5, 2, 1]: print("E002:Denominat...