菜鸟们都退散吧。 典型的浮点精度问题。不信的话,在PC机上都能重复出这个错误: 开个python然后输入14.52-14.49: [root@sr1 ~]# python Python 2.6.4 (r264:75706, May 11 2010, 16:44:48) [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> 14.52-14.49 ——详细阅读