摘要: 1、判断字符串,返回类型是布尔值 str = "runoob.com" print(str.isalnum()) # 判断所有字符都是数字或者字母 print(str.isalpha()) # 判断所有字符都是字母 print(str.isdigit()) # 判断所有字符都是数字 print(st 阅读全文
posted @ 2020-04-25 15:36 呆呆蒙蒙 阅读(132) 评论(0) 推荐(0)