I need your help~ I have a LF problem when I use 'wirtestr'. the text have been written into zip well but It comes in one line without line breaks. Only I could find the delimiter which looks like square has circle in the middle of it, maybe hex code for newline. If anyone knows about this problem please help!
fp = StringIO(line)
value = fp.getvalue()
filename1 = 'D:/re/m/11.txt'
filename2 = 'D:/re/m/dd.zip'
archive = zipfile.ZipFile(filename2, 'w', zipfile.ZIP_DEFLATED)
finfo = zipfile.ZipInfo(filename1)
archive.writestr(finfo, value)