擅长:python、mysql、java
<p>问题出在你的类<code>Flight</code>:</p>
<pre><code>def aircraft(self):
return self._aircraft()
</code></pre>
<p>当<code>self._aircraft()</code>是<code>Aircraft</code>类型的对象时,<code>self._aircraft()</code>正试图将<code>self._aircraft</code>用作函数。将<code>Flight.aircraft</code>方法更改为</p>
^{pr2}$
<p>这将返回实际对象。在</p>