为什么会发生这种情况,我该如何避免这个问题?
Python 2.7.5 (default, Jun 27 2013, 09:29:43)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 0.3 - 0.1 - 0.1 - 0.1
2.7755575615628914e-17
>>> 0.3 - 0.3
0.0
>>> 0.3 - 0.2
0.09999999999999998