The problem can not write file python wrap, use '\ n' No, out of the direct printing.
Internet search of the investigation, said that with '\ r \ n', but this is playing out, not only for the trip, but also added a blank line.
windows platform final result is the direct use '\ r'
Effective pro-test