【Python】用百分比输出结果的方法

result = '{:.2%}'.format(match_rate)#output the rate in percentage.
The match rate is: 14.58%.

posted @ 2021-11-17 11:28  易点灵通  阅读(425)  评论(0)    收藏  举报