try: from StringIO import StringIO except ImportError: from io import StringIO
py3下怎么用StringIO
原文:http://www.cnblogs.com/dengyg200891/p/8078762.html