原帖由 leefurong 于 2008-10-6 14:36 發(fā)表
isdigit的docstring:
Return True if all characters in S are digits
and there is at least one character in S, False otherwise.'
可見,isdigit逐個(gè)判斷字符串中的每個(gè)字符,是否所有的都是數(shù)字(也就是 ...
歡迎光臨 Chinaunix (http://www.72891.cn/) | Powered by Discuz! X3.2 |