擅长:python、mysql、java
<p>您不需要使用self作为参数之一调用calculate\u wage():</p>
<p>应该是:</p>
<pre><code>class PartTimeEmployee(Employee):
def calculate_wage(self, hours):
self.hours = hours
return hours * 12.00
def full_time_wage(self, hours):
super(PartTimeEmployee, self).calculate_wage(hours)
</code></pre>