pass_num=80 execute_num=90 pass_rate = "%.2f%%" % (float(pass_num)/float(executed_num)*100) print pass_rate
本文共 156 字,大约阅读时间需要 1 分钟。
pass_num=80 execute_num=90 pass_rate = "%.2f%%" % (float(pass_num)/float(executed_num)*100) print pass_rate
转载于:https://www.cnblogs.com/gcgc/p/11224875.html