擅长:python、mysql、java
<p>来自python文档:<a href="https://docs.python.org/3/library/re.html#re.sub" rel="nofollow noreferrer">https://docs.python.org/3/library/re.html#re.sub</a></p>
<pre><code>re.sub(pattern, repl, string, count=0, flags=0)
</code></pre>
<p>很多争论重复冗长,这是如此令人困惑,而且参数的位置很容易出错。在</p>
<p>所以我建议将定义模式和.sub移动分成两行:</p>
^{pr2}$
<p>在我看来这更具可读性。在</p>