九州体育网 - 十年信誉网站

关于作者

Discuss / Python / 练习

练习

Topic source

放羊的实习生

#1 Created at ...

s1 = 72 s2 = 85 r = ((s2-s1)/s1)*100 print(r); print('小明造诣提升了{0:.1f}%'.format(r)) print('小明造诣提升了%.1f%%' % r)


18.055555555555554 小明造诣提升了18.1% 小明造诣提升了18.1%


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.