这是我的代码,我想导入所有的wav文件存储在我的桌面上。但是每次我改变反斜杠的时候都会显示出一些错误。显示EOL错误。你知道吗
no_of_recordings=[]
for label in labels:
waves = [f for f in os.listdir('Desktop/yes' + '/'+ labels) if f.endswith('.wav')]
no_of_recordings.append(len(waves))
错误消息:
TypeError: can only concatenate str (not "list") to str
只是输入错误,请使用迭代当前对象而不是列表:
相关问题 更多 >
编程相关推荐