擅长:python、mysql、java
<p>整数只是没有小数的数。你知道吗</p>
<pre><code>-4,-3,-2,-1,0,1,2,3,4,...,65535 etc...
</code></pre>
<p>允许浮点数或十进制数表示分数和更精确的数字</p>
<pre><code>10.5, 4.9999999
</code></pre>
<p>如果要获取字符串并获取非整数的数字类型,请使用<a href="http://docs.python.org/2/library/functions.html#float" rel="nofollow">^{<cd1>}</a></p>
<pre><code>float('10.5')
</code></pre>
<p>这里是一个非常简单的小学解释<a href="http://www.mathsisfun.com/whole-numbers.html" rel="nofollow">integers</a></p>
<p>以下是<a href="http://docs.python.org/2/library/stdtypes.html#numeric-types-int-float-long-complex" rel="nofollow">numerical types</a>的python文档</p>