擅长:python、mysql、java
<p>问题是传递给函数的第二个<code>self</code>。你知道吗</p>
<pre><code>super(PartTimeEmployee, self).calculate_wage(self, hours)
^
</code></pre>
<p>当您将<code>self</code>传递给<code>super</code>时,它将自动将超类传递给函数(如果它提供了该函数)。否则它将在类的其他基中查找函数<code>__mro__</code>。你知道吗</p>
<p>阅读更多文档:<a href="https://docs.python.org/3.6/library/functions.html#super" rel="nofollow noreferrer">https://docs.python.org/3.6/library/functions.html#super</a></p>