擅长:python、mysql、java
<p>没有使用<code>list</code>或<code>tuple</code>的绑定理由<a href="https://docs.python.org/3/tutorial/datastructures.html#tuples-and-sequences" rel="nofollow noreferrer">However, ^{<cd1>} idiomatically represents a sequence of <em>same kind of</em> items but ^{<cd2>} represents a sequence of <em>different kind of</em> items.</a>这也是由类型提示编码的,在<code>tuple[str, int, int]</code>内有一些<code>list[str | int]</code>但位置字段</p>
<p>因此,<code>list</code>更准确地表示“任意名称序列”</p>
<p>政治公众人物8反复提到<code>__all__</code>是一个列表:</p>
<blockquote>
<p>To better support introspection, modules should explicitly declare the names in their public API using the <code>__all__</code> attribute. Setting <code>__all__</code> to <em>an empty list</em> indicates that the module has no public API.</p>
</blockquote>
<blockquote>
<pre class="lang-py prettyprint-override"><code>"""This is the example module.
This module does stuff.
"""
...
__all__ = ['a', 'b', 'c']
</code></pre>
</blockquote>