在画图时,如何把图中的数值显示为百分比呢?如图中的第一个蓝色数值为0.146,如何显示为14.6%呢?
print('percent: {:.2%}'.format(42/50)) percent: 84.00%