s1=72 s2=85 r=(s2-s1)/s2*100 print('hello,%s,成绩提升了%.1f%%'%('小明',r)) print('hello,{0},成绩提升了{1:.1f}%'.format('小明',r))
r=(s2-s1)/s1*100
Sign in to make a reply
独具一格5
s1=72 s2=85 r=(s2-s1)/s2*100 print('hello,%s,成绩提升了%.1f%%'%('小明',r)) print('hello,{0},成绩提升了{1:.1f}%'.format('小明',r))