擅长:python、mysql、java
<p>看来优化.root返回OptimizeResult对象:</p>
<pre><code>Returns:
solOptimizeResult:
The solution represented as a OptimizeResult object. Important attributes are: x the solution array, success a Boolean flag indicating if the algorithm exited successfully and message which describes the cause of the termination. See OptimizeResult for a description of other attributes.
</code></pre>
<p>请看这里:<a href="https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.OptimizeResult.html#scipy.optimize.OptimizeResult" rel="nofollow noreferrer">https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.OptimizeResult.html#scipy.optimize.OptimizeResult</a></p>
<p>对象由4个以上的字段组成,您要查找的字段是第一个字段,因此<code>optimize.root(equations, (1,1,1,1),earthpos)[0]</code>是否可以工作?如果这不起作用,我很抱歉,我已经很久没有用Python编程了。你知道吗</p>