擅长:python、mysql、java
<p><code>r'..'</code>字符串修饰符使<code>'..'</code>字符串被逐字解释为<strong>。这意味着,<code>r'My\Path\Without\Escaping'</code>将计算为<code>'My\Path\Without\Escaping'</code>-而不会导致反斜杠转义字符。previor相当于<code>'My\\Path\\Without\\Escaping'</code>字符串,但没有raw修饰符。</p>
<p>注意:字符串<strong>不能以奇数个反斜杠结尾,即<code>r'Bad\String\Example\'</code>不是正确的字符串。</p>