Discuss / Python / 交作业

交作业

Topic source

柳下跖

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

r = (s2-s1)/s1*100

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

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

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


  • 1

Reply