摘要: >>> a=0.1>>> b=0.2>>> c=a+b>>> c0.30000000000000004>>> from decimal import Decimal>>> c=Decimal(str(a))+Decimal(str(b))>>> float(c)0.3>>> 阅读全文
posted @ 2018-10-08 17:53 EngineTang 阅读(1422) 评论(0) 推荐(0) 编辑