阅读背景:

使用io时Unicode出现问题。用StringIO模拟一个文件

来源:互联网 

I am using an io.StringIO object to mock a file in a unit-test for a class. The problem is that this class seems expect all strings to be unicode by default, but the builtin object to mock a file




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

分享到: