python3判断一个字符是不是全部是英文

版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/qq_32768743/article/details/89713612
def isAllEnCh(s):
    for ch in s:
        if ord(ch) > 255:
            return False

    return True

猜你喜欢

转载自blog.csdn.net/qq_32768743/article/details/89713612