2019年8月29日

摘要: ```Python #coding:utf-8 ## 先去ffmpeg官网下载(https://ffmpeg.zeranoe.com/builds/),好了之后解压缩,配一下环境变量 ## 打开cmd,运行命令,安装如下的包 ## pip install baidu-aip ## pip install pydub ## pip install PyAudio ## pip install Wav 阅读全文
posted @ 2019-08-29 12:00 yejifeng 阅读(797) 评论(0) 推荐(0) 编辑
摘要: ```Python ## 文件路径出错问题 """ 如何获取与当前文件相关的地址 """ import os # 当前文件的完整路径 print(__file__) #__file__表示了当前文件的路径 print(os.path.abspath(__file__)) #os.path.abspath功能返回一个目录的绝对路径 print(os.path.realpath(__file__... 阅读全文
posted @ 2019-08-29 11:56 yejifeng 阅读(299) 评论(0) 推荐(0) 编辑

导航