Python 无法识别Scipy插值函数

Python 无法识别Scipy插值函数,python,import,module,scipy,interpolation,Python,Import,Module,Scipy,Interpolation,我创建了一个程序来做一些计算,其中一部分是插值。由于某些原因,该程序无法加载scipy插值模块。我怎样才能让它工作?scipy插值模块的路径正确 from scipy.interpolate import interplt ftempacce = interplt(temp, acce, kind='linear') ait = ftempacce(t) 日志错误: SyntaxError: invalid syntax >>> from scipy.interpolate

我创建了一个程序来做一些计算,其中一部分是插值。由于某些原因,该程序无法加载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():
                                                          ^
SyntaxError:无效语法
>>>从scipy.interpole导入interplt
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Python27\lib\site packages\scipy\interpolate\\uuuu init\uuuu.py”,第150行,在
从。插入导入*
文件“C:\Python27\lib\site packages\scipy\interpolate\interpolate.py”,第467行
ait如果self.bounds_错误且低于_bounds.any():
^
变量temp和acce是数字列表:

>>> type(temp)
<type 'list'>
>>> type(acce)
<type 'list'>
>>> 
>类型(临时)
>>>类型(acce)
>>> 

我看不到此处列出的要导入的功能:阅读手册后,我发现代码中有错误。它应该是“interpld”而不是“interplt”。这是一个愚蠢的打字错误。感谢您指向参考手册Hemmer2