Discuss / Python / 作业

作业

Topic source

Lscore=float(input('小明,你上一次考了多少分啊:')) Tscore=float(input('那这次呢?:')) Change=float(100*(Tscore-Lscore)/Lscore) if Tscore>Lscore: print('小明啊,干的不错!你的成绩进步了:%.1f%%'%Change) else: print('小明,你要努力啊!你的成绩退步了:%0.1f%%'%-Change)


  • 1

Reply