May-29-2021, 09:26 AM
It is very simple. The string
'\r\n'
contains two characters: a carriage return and a line feed. The string r'\r\n'
contains four characters: a backslash, the letter r, another backslash, the letter n. You need to know what the server is expecting but this is independent from Python programming.