s.isdigit() - is digit; s.isalpha() - is alphabetic "word" char ... See guide: Python-if; Regular if - do the body lines, or do nothing; if/else variant:
確定! 回上一頁