s1 = 72
s2 = 85
r = (s2 - s1) / s1 * 100
print('%.1f%%' %r)
print('{0:.1f}%'.format(r))
print(f'{r:.1f}%')
Sign in to make a reply
背诵的对白
s1 = 72
s2 = 85
r = (s2 - s1) / s1 * 100
print('%.1f%%' %r)
print('{0:.1f}%'.format(r))
print(f'{r:.1f}%')