For unicode string, string.isalpha will determine whether the characters in the string are all composed of letters based on whether they belong to the LETTER area of Unicode encoding. So the result is True, which does not necessarily mean that there are only 26 English letters.
Regular expressions should be the simplest method.
For unicode string,
string.isalpha
will determine whether the characters in the string are all composed of letters based on whether they belong to the LETTER area of Unicode encoding. So the result is True, which does not necessarily mean that there are only 26 English letters.Regular expressions should be the simplest method.
Of course you can: