练习4:3我的在餐厅吃饭,想分摊饭费。总共花费35.27美圆,他们还想给15%的小费。每一个人该怎么付钱

# -*-coding:utf-8 -*- # 题目4:3我的在餐厅吃饭,想分摊饭费。总共花费35.27美圆,他们还想给15%的小费。每一个人该怎么付钱 expense = 35.27 #消费 tip = expense*0.15  #小费 per_person_pay = (expense + tip)/3 #3人均摊 print per_person_payblog 运行结果:ip
相关文章
相关标签/搜索