# 写法:字符串.isalpha()# 定义:判断字符串中所有字符是否为字母x = 'abcdEFGH'i = 'abcd&*()'print(x.isalpha()) #输出Trueprint(i.isalpha()) #输出False