Discuss / Python / 背诵的对白

背诵的对白

Topic source

s1 = 72

s2 = 85

r = (s2 - s1) / s1 * 100

print('%.1f%%' %r)

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

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


  • 1

Reply