Discuss / Python / 小明成绩变化剫(作业)

小明成绩变化剫(作业)

Topic source

叫我_小军

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

a = int(input('小明上一年成绩:')) b = int(input('小明今年成绩:')) c = ((b-a)/b)*100 if c >= 0 : print('小明成绩变化幅度:+%.1f%%' % c) else: print('小明成绩变化幅度:%.1f%%' % c)


  • 1

Reply