在python2中是支持cStringIo的:
from cString import StringIo—在python2中是支持的,但是python3中是不支持的,所以需要使用其他的模块来替代的:io模块
from io import StringIo
from io import BytesIo
哈哈就是这样的简单
这里就是用来操作内存的,在内存存东西,以及在内存中取东西
在python2中是支持cStringIo的:
from cString import StringIo—在python2中是支持的,但是python3中是不支持的,所以需要使用其他的模块来替代的:io模块
from io import StringIo
from io import BytesIo
哈哈就是这样的简单
这里就是用来操作内存的,在内存存东西,以及在内存中取东西