擅长:python、mysql、java
<p><code>\</code>是转义字符。你有三个选择。</p>
<p>1)使用<code>/</code>。这对于linux也有好处:</p>
<pre><code> 'D:/xxx/xxxx/playlist/playlist.m3u'
</code></pre>
<p>2)避开反斜杠</p>
<pre><code> 'D:\\xxx\\xxxx\\playlist\\playlist.m3u'
</code></pre>
<p>3)使用原始字符串:</p>
<pre><code>r'D:\xxx\xxxx\playlist\playlist.m3u'
</code></pre>