批量转换目录下音频格式的,批量转换音频格式,##import os;
批量转换目录下音频格式的,批量转换音频格式,##import os;
##import os;def fa(dir): dst_dir = os.getcwd() + '/mp3/'; lists = os.walk(dir); for root, dirs, files in lists: for file in files: pix = os.path.splitext(file); if 'amr' == pix[1][1:]: dst_file = dst_dir + pix[0] + '.mp3'; src_file = root + '/' + file; cmd = 'ffmpeg -i ' + src_file + ' ' + dst_file; os.system(cmd) print('ok');fa('/root/python/amr');
相关内容
- python获取远程设备的IP地址,python获取ip,有时需要将主
- 初级爬虫,,# -*- coding
- python统计cpu的利用率,pythoncpu利用率,python统计cpu的
- 深度搜索解数独,深度搜索解数,def guess(ku
- 虾米XMusicCache歌曲批量命名,虾米xmusiccache歌曲,#!/usr/
- 采用二分查找找出某个数字的下标,二分查找找出下标
- selenium简单模拟百度搜索点击器,selenium百度搜索,#cod
- python实现某论坛自动签到bs4解析html文档,pythonbs4,#!/u
- 爬取豆瓣照片,豆瓣照片,None
- 简单的爬虫,从 html 中提取表格信息,爬虫表格,#!/us
评论关闭