摘要: 1、四舍五入 import decimal decimal.getcontext().rounding = decimal.ROUND_HALF_UP a = str(decimal.Decimal(1.63333).quantize(decimal.Decimal("0.00"))) print( 阅读全文
posted @ 2022-10-19 19:28 三三得九86 阅读(33) 评论(0) 推荐(0)