擅长:python、mysql、java
<p><em>对于Windows/WSL/Cygwin etc用户:</em></p>
<p>确保行尾是标准的Unix换行符,即仅限<code>\n</code>(LF)。</p>
<p>使用Windows行结束符<code>\r\n</code>(CRLF)行结束符将中断命令行中断符。</p>
<hr/>
<p>这是因为将<code>\</code>放在以Windows行结尾的行的末尾将转换为
<code>\</code><code>\r</code><code>\n</code>。<br/>
正如马克在上面正确解释的那样:</p>
<blockquote>
<p>The line-continuation will fail if you have whitespace after the backslash and before the newline.</p>
</blockquote>
<p>这不仅包括空格(<code/>) or tabs (<code>\t</code>),还包括回车(<code>\r</code>)。</p>