我创建了一个程序来进行一些计算,其中一部分是插值。由于某种原因,程序无法加载scipy插值模块。我怎样才能使它工作? scipy插值模块的路径是正确的。
from scipy.interpolate import interplt
ftempacce = interplt(temp, acce, kind='linear')
ait = ftempacce(t)
记录错误:
SyntaxError: invalid syntax
>>> from scipy.interpolate import interplt
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\scipy\interpolate\__init__.py", line 150, in <module>
from .interpolate import *
File "C:\Python27\lib\site-packages\scipy\interpolate\interpolate.py", line 467
ait if self.bounds_error and below_bounds.any():
^
变量temp和acce是数字列表:
>>> type(temp)
<type 'list'>
>>> type(acce)
<type 'list'>
>>>