.
. out = io.StringIO().
-, Python v3, write , acsii unicode.
-, , . , StringIO close. , Java, (StringWriter) .
Finally, StringIO writes to memory, not to a file. Use out = open(filename,'w')if you want to write to a file.
So, not knowing the exact error you received, that is all that I received. The error message you get is usually quite helpful.
source
share