擅长:python、mysql、java
<p>U+2466是<a href="http://www.fileformat.info/info/unicode/char/2466/index.htm">CIRCLED DIGIT SEVEN</a>(⑦),所以是的,它是一个数字。</p>
<p>如果您对什么是数字的定义与<a href="http://unicode.org/">Unicode Consortium</a>的定义不同,则可能需要编写自己的<code>isdigit()</code>方法。</p>
<blockquote>
<p>Edit, If I don't want to treat it as a digit, then how to filter it out?</p>
</blockquote>
<p>如果您只是对ASCII数字<code>0</code>…<code>9</code>感兴趣,可以执行以下操作:</p>
<pre><code>In [4]: s = u'abc 12434 \u2466 5 def'
In [5]: u''.join(c for c in s if '0' <= c <= '9')
Out[5]: u'124345'
</code></pre>