阅读背景:

测试python字符串是否可打印

来源:互联网 

I have some code that pulls data from a com-port and I want to make sure that what I got really is a printable string (i.e. ASCII, maybe UTF-8) before printing it. Is there a function for doing this? The first half dozon places I looked didn't have anything that looks like what I want. (I have some code that pulls data from a com-por




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: