>>> 33/22 1.5 >>> 3.3/2.2 1.4999999999999998 >>> 1-0.1 0.9 >>> 1-0.9 0.09999999999999998
>>> from decimal import Decimal >>> print(Decimal('3.3')/Decimal('2.2')) 1.5 >>> print(Decimal('1')-Decimal('0.9')) 0.1
本文出自 qbit snap