Discuss / Python / 提升了18.1%

提升了18.1%

Topic source

#1 Created at ... [Delete] [Delete and Lock User]

last_year_score = 72

this_year_score = 85

percentage_point = (this_year_score - last_year_score) * 100 / last_year_score

print(f"提升了{percentage_point:.1f}%")

岑某飞

#2 Created at ... [Delete] [Delete and Lock User]
print('Hello, {0}, 成绩提升了 {1:.1f}%'.format('小明', (85/72-1)*100))

  • 1

Reply