python 输入

commodity={1:["milk",50],2:["oil",40],3:["rice",30],4:["soap",20],5:["orange",10]}
min_price=10000
buy_list=[]
# print(commodity.keys())

salary=int(input("输入工资:"))
for key in commodity.keys():
    if commodity[key][1]

你可能感兴趣的:(Python)