Discuss / Python / 作业

作业

Topic source

浅言87780

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

r = (s2-s1)/s1

print('小明的成绩提升的百分点是%3.1f%%' % r)v

浅言87780

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

去掉v

浅言87780

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

r = (s2-s1)/s1

print(f'小明的成绩提升的百分点是{r:4.1f}%')

浅言87780

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

r = (s2-s1)/s1

print('小明的成绩提升的百分点是{0:.1f}%'.format(r))


  • 1

Reply