price = 8.5 weight = 7.5 变量money的等号右边不是一个具体的值,而是一个表达式 给变量赋值不但可以用具体的数,还可以用表达式 money = price * weight print(money) 如果买10斤苹果,返5块钱 price = 8.5 weight = 10 money = price * weight money = money - 5 print(money)