I think you have the file open. You need to close it as stated in the docs:如果打开了一个文件,则只要SoundFile对象存在,它就会一直保持打开状态.当对象被垃圾回收时,文件关闭,但是您应该使用soundfile.SoundFile.close()方法或上下文管理器显式关闭文件 If a file is opened, it is kept open for as long as the SoundFile object exists. The file closes when the object is garbage collected, but you should use the soundfile.SoundFile.close() method or the context manager to close the file explicitly 这篇关于win32权限:无法删除文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-29 15:17
查看更多