擅长:python、mysql、java
<p><a href="http://docs.python.org/2/library/functions.html#raw_input" rel="nofollow">^{<cd1>}</a>返回字符串,应使用<code>int()</code>将其转换为整数:</p>
<pre><code>a = int(raw_input("please enter number: "))
</code></pre>
<p><strong>示例:</strong></p>
^{pr2}$