Python字符串检测方法
.isalnum() 所有字符都是数字或者字母,为真返回 Ture,否则返回 False。
.isalpha() 所有字符都是字母,为真返回 Ture,否则返回 False。
.isdigit() 所有字符都是数字,为真返回 Ture,否则返回 False。
.islower() 所有字符都是小写,为真返回 Ture,否则返回 False。
.isupper() 所有字符都是大写,为真返回 Ture,否则返回 False。
.istitle() 所有单词都是首字母大写,为真返回 Ture,否则返回 False。
.isspace() 所有字符都是空白字符,为真返回 Ture,否则返回 False。