s1=int(input('请输入去年的成绩')) s2=int(input('请输入今年的成绩')) r=(s2-s1)/s1*100 print('小明的成绩提升了%2.1f%%'%r) print(f'小明的成绩提升了{r:.1f}%')
Sign in to make a reply
:)