擅长:python、mysql、java
<p>在句法上,这句话毫无意义:</p>
<pre><code>invest(initial_amount,top_company(5,year,year+1)) = subsequent_amount
</code></pre>
<p>您正试图为函数调用赋值,如错误所述。你想完成什么?如果尝试将<code>subsequent_amount</code>设置为函数调用的值,请切换顺序:</p>
<pre><code>subsequent_amount = invest(initial_amount,top_company(5,year,year+1))
</code></pre>