擅长:python、mysql、java
<p>在Python中,<code>r'something'</code>或<code>r"something"</code>是<a href="http://docs.python.org/reference/lexical_analysis.html#string-literals" rel="nofollow">raw strings</a>。普通字符串和原始字符串之间的区别在于,在后一种情况下,反斜杠字符(<code>\</code>)不需要转义。你知道吗</p>
<p>在您给出的代码中,原始字符串似乎用于指定<a href="http://docs.python.org/library/re.html" rel="nofollow">regular expressions</a>,这是原始字符串的常见用例。你知道吗</p>
<p>正则表达式用于搜索模式或匹配模式。有一个很好的教程<a href="http://docs.python.org/howto/regex.html" rel="nofollow">here</a>。你知道吗</p>