python里小数如何表述?,银行,培训,小数,位数,问题,精度,表示,以上,存在,更多,1、Python中的小数存在精度问题:>>>0.1+0.1+0.1-0.35.551115123125783e-17>>>print(0.1+0.1+0.1-0.3)5.551115123125783e-172、那小数怎么表示呢?>>>fromdecimalimportDecimal>>>Decimal("0.1")+Decimal("0.1")+Decimal("0.1")...
2023-11-12培训 银行 小数