【每日BUG】:python 调用StringIO需要安装那个模块?怎么安装?

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_37251044/article/details/84714740

python系统库已经自带了,不需要另行安装

#在python2.x中导入模块方法:
from StringIO import String
#在python2.x中它还有个孪生兄弟,运行速度比它快,用c实现的
from cStringIO import StringIO
#在python3.x中,StringIO已经在io模块中了,导入方法
from io import StringIO

from:
https://zhidao.baidu.com/question/1239621451888445019.html

猜你喜欢

转载自blog.csdn.net/weixin_37251044/article/details/84714740