摘要: 参考:http://stackoverflow.com/questions/3636928/test-if-a-python-string-is-printableprint all(ord(c)<127and c in string.printable for c in input_str) 阅读全文
posted @ 2014-01-06 10:59 liyuxia713 阅读(734) 评论(0) 推荐(0) 编辑