Discuss / Python / 111

🥛

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

r = (s2-s1)*100/s1

print(f'小明的成绩提升了{r:.1f}%')

print('小明的成绩提升了%.1f%%' % r)

print('小明的成绩提升了{0:.1f}%.'. format(r))


  • 1

Reply