1、下载 ffmpeg https://ffmpeg.zeranoe.com/builds/
# _*_ encoding:utf-8 _*_
import os
m4a_path_input = "G:/" #需要转换的文件目录
m4a_path_output = "G:/mp3/" #输出到指定的文件目录
url="F:/迅雷下载/ffmpeg-20200504-5767a2e-win64-static/ffmpeg-20200504-5767a2e-win64-static/bin/ffmpeg -i " #ffmpeg bin所在的路径
m4a_file = os.listdir(m4a_path_input)
for i, m4a in enumerate(m4a_file):
os.system(url + m4a_path_input + m4a + " " + m4a_path_output + str(i) + ".mp3" )