擅长:python、mysql、java
<p>这在很大程度上是一个品味和意见的问题,但在这里,有两个!在</p>
<ul>
<li>很少有真正的代码坚持严格的80列建议。避免笨重、冗长的队伍是值得的,但狭隘地坚持一个源自穿孔卡片的约束是愚蠢的。PEP8也解决了这一问题:</li>
</ul>
<blockquote>
<p>Some teams strongly prefer a longer line length. For code maintained
exclusively or primarily by a team that can reach agreement on this
issue, it is okay to increase the nominal line length from 80 to 100
characters (effectively increasing the maximum length to 99
characters)</p>
</blockquote>
<ul>
<li>对于这样的情况,最明智的做法可能是建立某种数据结构,这种结构主要是通过文本来表达的,然后通过**参数或使用循环插入到配置调用中。它使所有的文本可读,内联和在一个地方,因此容易编辑。您应该能够在代码中间得到一个看起来像docstring的blob。在</li>
</ul>