价格打折模块
def discounts(price,rate): finalprice=price*rate print(old_price) return finalprice old_price=float(input('inputoldprice:')) rate=float(input('inputrate')) new_price=discounts(old_price,rate) print(new_price)
posted on 2018-05-21 13:26 你是不夜星空 阅读(586) 评论(0) 编辑 收藏 举报