擅长:python、mysql、java
<p>它不会将第一个列表识别为两个列表。必须使用<code>self</code>作为函数的第一个参数,因为<strong>显式优于隐式。详细地给出了推理。我在这里引用一些。你知道吗</p>
<blockquote>
<p>First, it’s more obvious that you are using a method or instance attribute instead of a local variable. Reading self.x or self.meth() makes it absolutely clear that an instance variable or method is used even if you don’t know the class definition by heart.</p>
</blockquote>