s1 = float(input('Please enter last year\'s grades:')) s2 = float(input('Please enter this year\'s grades:')) print('growth rate :%.1f%%' % ((s2-s1)/s2*100))
提升的百分点应该是除以s1而不是s2
Sign in to make a reply
萌萌小喵姐