Discuss / Python / 打卡

打卡

Topic source

且看风吟0

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

r =((s2-s1)/s1)*100

print('小明成绩提升了:%.1f %%'% r)

print(f'小明成绩提升了:{r:.1f}%')

print('小明成绩提升了{:.1f}%'.format(r))


  • 1

Reply