Python的format格式化函数 format方法实例: ‘Hello, {0}, 成绩提升了 {1:.1f}%’.format(‘小明’, 17.125) ‘Hello, 小明, 成绩提升了 17.1%’ https://www.runoob.com/python/att-string-format.html 菜鸟驿站介绍的数字格式