关于调用StringIO模块,python3中需要这样: from io import StringIO 而python2还是 from StringIO import StringIO 转载于:https://www.cnblogs.com/yqpy/p/8604974.html