The following link has an example of using python wave to play a wav file.
The trouble is on my computer any script with 'import wave' just produces a picture of a wave and does nothing else. (ie the rest of the script doesn't even run.) I have no idea why this is. Is there a way to fix this? I'm running python 2.7 on windows XP.
您很可能在当前目录(或PYTHONPATH
某处)中运行了一个名为wave.py
的文件,而不是运行相同名称的标准库模块。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.