score={'苹果':9,'梨':8,'香蕉':5} i=input("你想要什么") if i in score: print(score[i]+"元") else: score[i]=10 print(score)