📅  最后修改于: 2022-03-11 14:45:27.750000             🧑  作者: Mango
\n vs \r
QUESTION: What is the difference between \n and \r?
\n is the newline character, while \r is the carriage return.
(They differ in what uses them.)
------- Windows uses \r\n to signify the enter key was pressed.
------- Linux and Unix use \n.