擅长:python、mysql、java
<p>根据<a href="http://legacy.python.org/dev/peps/pep-0008/" rel="nofollow">PEP8</a>:</p>
<blockquote>
<p>The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple lines by wrapping expressions in parentheses. These should be used in preference to using a backslash for line continuation.</p>
</blockquote>
<p>只有当反斜杠会导致语法问题或使用括号(例如<code>with</code>和<code>assert</code>语句)时才会使用反斜杠。e、 g</p>
<pre><code>with something('foo') as some_name, \
something_else('bar') as some_other_name:
</code></pre>
<p>应优先于:</p>
^{pr2}$