http://stackoverflow.com/questions/228532/difference-between-char-isdigit-and-char-isnumber-in-c-sharp Char.IsDigit() is a subset of Char.IsNumber(). Some of the characters that are 'numeric' but not digits include 0x00b2 and 0x00b3 which are supersc
python int是python把任何类型转换成int类型的方法,但是你如果运用不好的话,会引发异常,但是python的str字符串转换方法运用起来倒是比较安全,它把任何对象转换成字符串类型都不会报异常. 现给个python int的例子: 比如a = '123' b = int(a) print b的结果是123 a = 'abc' b = int(a) print b的话, 会报:ValueError: invalid literal for int() with base