擅长:python、mysql、java
<p>使用<a href="https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals" rel="nofollow noreferrer">raw strings</a>,在字符串开头的引号前插入<code>r</code>字符:</p>
<pre class="lang-py prettyprint-override"><code>import os
path = os.getcwd()
os.system(r'powershell.exe $env:path += \"' + path + r'\\ProgramFiles\"')
</code></pre>