python2:输出百分比

pass_num=80
execute_num=90
pass_rate = "%.2f%%" % (float(pass_num)/float(executed_num)*100)
print pass_rate

python2:输出百分比_第1张图片

 

 
  

转载于:https://www.cnblogs.com/gcgc/p/11224875.html

你可能感兴趣的:(python)