Python中输出百分数

在python中输出百分数:例如99.99%

a=99.99
print("%.2f%%" % a)#显示小数点后两位,其中%%代表输出%


 

猜你喜欢

转载自blog.csdn.net/qq_40808154/article/details/88728543
今日推荐