Discuss / Python / zuoye

zuoye

Topic source

Xaldan

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

r = (s2-s1)/s1*100

print('提升了{0:.1f}%'.format(r))

print('提升了%.1f%%' % r)

print(f'提升了{r:.1f}%')


  • 1

Reply