擅长:python、mysql、java
<p><code>\r</code>是ASCII<a href="http://en.wikipedia.org/wiki/Carriage_return" rel="nofollow">Carriage Return</a>(CR)字符。</p>
<p>不同的操作系统使用不同的换行约定。最常见的是:</p>
<ul>
<li>CR+LF(<code>\r\n</code>)</li>
<li>低频(<code>\n</code>)</li>
<li>铬(<code>\r</code>)。</li>
</ul>
<p><code>\n\r</code>(LF+CR)看起来很不传统。</p>
<p><strong>编辑:</strong>我对<a href="https://tools.ietf.org/html/rfc854" rel="nofollow">Telnet RFC</a>的阅读表明:</p>
<ol>
<li>CR+LF是telnet协议使用的标准换行序列。</li>
<li>LF+CR是可接受的替代品:</li>
</ol>
<blockquote>
<p>The sequence "CR LF", as defined, will cause the NVT to be
positioned at the left margin of the next print line (as would,
for example, the sequence "LF CR").</p>
</blockquote>