逐个字符用ord()判断ascii码
a - z : 97 - 122
A - Z : 65 - 90
def is_english_char(ch):
if ord(ch) not in (97,122) and ord(ch) not in (65,90):
return False
return True
逐个字符用ord()判断ascii码
a - z : 97 - 122
A - Z : 65 - 90
def is_english_char(ch):
if ord(ch) not in (97,122) and ord(ch) not in (65,90):
return False
return True