标签:
后两位
后浪云Python教程:python中如何保留小数点后两位
保留两位小数,并做四舍五入处理 方法一:使用字符串格式化 a = 12.345 print("%.2f" % a) # 12.35 方法二:使用round内置函数 a&n……
2022-11-18 后浪云
0
0