摘要: >>> from decimal import Decimal >>> a = 0.1 >>> b = 0.2 >>> c = float(Decimal(str(a)) + Decimal(str(b))) >>> c 0.3 阅读全文
posted @ 2022-02-17 15:57 walkerpython 阅读(51) 评论(0) 推荐(0) 编辑