1、Python startswith() 方法用于检查字符串是否是以指定子字符串开头,如果是则返回 True,否则返回 False。如果参数 beg 和 end 指定值,则在指定范围内检查。
https://www.runoob.com/python/att-string-startswith.html
2、Python isalnum() 方法检测字符串是否由字母和数字组成。
https://www.runoob.com/python/att-string-isalnum.html
3、Python Counter()计数函数