Python: ‘\r’ shows up in readlines() Ubuntu
I use Python, run on Windows7, to write a list into a text file say list.txt. Then I use Python, run on Ubuntu 9.1, to read (readlines) the text file into a list. I found that everywhere I put newline (\n) becomes (\r\n) in the list read by Python. I don’t know what happens here?