isalpha()方法: Python isalpha() 方法检测字符串是否只由字母组成。 isalpha()方法语法: str.isalpha() itertools.product()方法: https://www.cnblogs.com/anpengapple/p/5051013.html