What is a \r" and why would one use it with a \n?

前端 未结 3 509
滥情空心
滥情空心 2020-12-24 02:31

What is the difference between this two strings?

\"first line \\n second line\" , \"first line \\r\\n second line\"

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-24 03:11

    the difference is in the different EOL system (Unix like first, Win/DOS second)

    see http://en.wikipedia.org/wiki/Newline

提交回复
热议问题