Discuss / Python / 答题

答题

Topic source
s1 = 72
s2 = 85
r = (s2-s1)/s1*100
print('提升的成绩的百分比是%2.1f%%' % r)

-- coding: utf-8 --

s1 = 5 s2 = 10 r = float((s2 - s1) / s1) * 100

print('成绩提高了%.2f%%' % r)


  • 1

Reply