Discuss / Python / 作业打卡

作业打卡

Topic source

里昂tcxy

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

r = (s2-s1)/s1*100

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

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

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


  • 1

Reply