Discuss / Python / 1

:)

#1 Created at ... [Delete] [Delete and Lock User]
s1=int(input('请输入去年的成绩'))
s2=int(input('请输入今年的成绩'))
r=(s2-s1)/s1*100
print('小明的成绩提升了%2.1f%%'%r)
print(f'小明的成绩提升了{r:.1f}%')

  • 1

Reply