擅长:python、mysql、java
<p>您可以编写<code>chr(92)</code>来替换<code>\</code></p>
<pre><code>>>> print(chr(92))
\
</code></pre>
<p><a href="https://docs.python.org/3/library/functions.html#chr" rel="nofollow noreferrer">https://docs.python.org/3/library/functions.html#chr</a></p>
<blockquote>
<p>Return the string representing a character whose Unicode code point is
the integer i. For example, chr(97) returns the string 'a', while
chr(8364) returns the string '€'. This is the inverse of ord().</p>
</blockquote>