【发布时间】:2011-01-05 00:05:42
【问题描述】:
我正在尝试使用 scipy 读取 *.wav 文件。我执行以下操作:
import scipy
x = scipy.io.wavfile.read('/usr/share/sounds/purple/receive.wav')
由于这段代码,我得到:
Traceback (most recent call last):
File "test3.py", line 2, in <module>
x = scipy.io.wavfile.read('/usr/share/sounds/purple/receive.wav')
AttributeError: 'module' object has no attribute 'io'
有人知道这里出了什么问题吗?提前谢谢你。
【问题讨论】: