# 定义苹果单价
price = 8.5
# 苹果重量
weight = 7.5
# 总价
money = price * weight
# 只要买苹果,就返5块
money = money - 5
print(money)
python超市买苹果
最新推荐文章于 2023-10-18 12:23:25 发布
# 定义苹果单价
price = 8.5
# 苹果重量
weight = 7.5
# 总价
money = price * weight
# 只要买苹果,就返5块
money = money - 5
print(money)