fruitId=int(input("请输入你需要购买的水果的编号:"))
fruitCount=int(input("请输入你需要购买的水果的数量:"))
finalNumber=int(fruitId)%1000-1
fruitPrice=["6.5","5","4"]
fruitName=["苹果","桃子","香梨"]
print("你所购买的水果的编号为:{},水果名称为:{},单价为:{}元,总价为:{}元。祝您身体健康。"
      .format(fruitId,fruitName[finalNumber],fruitPrice[finalNumber],float(fruitPrice[finalNumber])*fruitCount))
