Posted on July 20, 2010 by wangchen
检查是否为ASCII 字符串:
def is_ascii(s): return all(ord(c) < 128 for c in s) - 相关文章:mysql python in lion 64简单的Python 多进程异步处理PyCharmQ4 阅读计划
def is_ascii(s): return all(ord(c) < 128 for c in s)
Name (required)
Mail (will not be published) (required)
Website