一、简介 Python提取MP3,需要安装两个库ffmpeg和moviepy 二、使用方法 调用函数extract_audio即可。 import moviepy.editor as mp def extract_audio(videos_file_path): my_clip = mp.VideoFileClip(videos_file_path) my_clip.audio.write_audiofile(f'{videos_file_path}.mp3')