擅长:python、mysql、java
<p>python float类型中有<a href="http://docs.python.org/2/library/stdtypes.html#float.is_integer">^{<cd1>}</a>函数:</p>
<pre><code>>>> float(1.0).is_integer()
True
>>> float(1.001).is_integer()
False
>>>
</code></pre>