擅长:python、mysql、java
<p>我相信您需要调用ip来返回值,方法是使用以下行而不是打印行。在</p>
<p><code>print(ip.ev(15, 1975))</code></p>
<p>更新:</p>
<p>很容易调整。一直盯着我的脸。可以设置kx和ky的值,它们是二元样条曲线的度数<a href="http://gaezipserver.appspot.com/python/sci/scipy/generated/scipy.interpolate.RectBivariateSpline.html" rel="nofollow">See documentation here</a></p>
<p>不管怎样,只要将行调整为:</p>
<p><code>ip = RectBivariateSpline(years, service, wage, kx=2, ky=2)</code></p>
<p>如果你不想的话,你不需要调整kx。我怀疑如果你把kx保留为3,它会改变插值的很多。在</p>