摘要: from decimal import * a1 = Decimal('1.125').quantize(Decimal('0.00'),rounding=ROUND_HALF_UP) 参考:(27条消息) python 如何四舍五入_doudou_nc的博客-CSDN博客_python 四舍五入 阅读全文
posted @ 2022-09-14 12:23 cup_leo 阅读(59) 评论(0) 推荐(0) 编辑