Python3 TypeError: initial

mac2022-06-30  62

response.read() returns an instance of bytes while StringIO is an in-memory stream for text only. Use BytesIO instead.

The StringIO and cStringIO modules are gone. Instead, import the io module and use io.StringIO or io.BytesIO for text and data respectively.

转载于:https://www.cnblogs.com/vercont/p/10210179.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)