<p>PEP 8关于悬挂缩进:</p>
<blockquote>
<p>When using a hanging indent the following considerations should be applied; there should be no arguments on the first line and further indentation should be used to clearly distinguish itself as a continuation line.</p>
</blockquote>
<p>有没有关于“子论点”的明确文件?例如:</p>
<pre><code>some_method(argument_one, argument_two, argument_three=[
'parameter_one',
'parameter_two',
'parameter_three',
])
</code></pre>
<p>与之相反的是:</p>
^{pr2}$
<p>最好只链接到官方讨论。在</p>
<p>从政治公众人物8的“其他建议”部分:</p>
<blockquote>
<p>Compound statements (multiple statements on the same line) are
generally discouraged.</p>
</blockquote>
<p>考虑到这一建议,您的第二个示例可能更符合pep8样式指南,因为它避免了在同一行中混合方法调用和列表构造。第二个例子读起来也有点简单。在</p>