goods = {'A1':0,'A2':0,'A3':0,'A4':0,'A5':0,'A6':0} money = {1:0,2:0,5:0,10:0} price = {'A1':2,'A2':3,'A3':4,'A4':5,'A5':8,'A6':6} yu = 0 def find(yu,a=0,b=0,c=0,d=0): #a,b,c,d = 0,0,0,0 while yu>0: if yu>=10 and money[10]>0: d += 1 money[10] -= 1 ...