Discuss / Python / 打卡

打卡

Topic source

微尘初心

#1 Created at ... [Delete] [Delete and Lock User]
a = '{0}的成绩从去年的{1}分提升到了今年的{2}分,提高了{3:.1f}%'.format('小明', 72, 85, (85-72)/72 * 100)
b = '%s的成绩从去年的%d分提升到了今年的%d分,提高了%.1f%%' % ('小明', 72, 85, (85-72)/72 * 100)

  • 1

Reply