Discuss / Python / 交作业

交作业

Topic source

清寒藏韵

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

>>> s1=72

>>> s2=85

>>> print('%s的成绩从%2d上升到了%2d,提高比例为%1.2f%%'%('小明',s1,s2,s2/s1))

你好!应该先把提高比例r算出来吧 

然后 

提高比例为%.1f%%('小明',s1,s2,r)


  • 1

Reply