\r \n \r\n

\r  \n   \r\n \r是回车,英文是Carriage return,作用:使光标到行首 \n是换行,英文是New line/line feed,作用:使光标下移一行 我们平时所说的键盘Enter键换行实则应该叫做叫做回车换行(\r\n) 看到一种说法:  windows下enter是 \r\n;  linux/unix下是\n;  mac下是\r Windows 采用 \r\n 是有原因
相关文章
相关标签/搜索