超市买苹果增强版 ''' price = input("请输入苹果的单价") weight = input("请输入购买的重量") money = float(price) * float(weight) print(money) ''' price = float(input("请输入苹果的单价")) weight = float(input("请输入购买的重量")) money = price * weight print(money)