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}%")
print('Hello, {0}, 成绩提升了 {1:.1f}%'.format('小明', (85/72-1)*100))
Sign in to make a reply
今
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}%")