【Python】程序提取视频中的声音

安装依赖pip install multiprocessing pip install moviepy.editor Python代码from multiprocessing import Pool from moviepy.editor import AudioFileClip import os def p(path,path1, item): new_name = item.spli

- 阅读全文 -

Python pyPdf2&pyPdf 多页PDF文档处理报错

当一个pdf文件有多page的时候,它将出来见你!偷笑方法是取直接修改那个文件generic.py(1)pyPdf路径大约在这里:/usr/lib/python2.7/site-packages/pyPdf/generic.pyif data.has_key(key): # multiple definitions of key not permitted raise ut

- 阅读全文 -

github同步仓库(非Fork)

1.新建仓库2.点击Action3.复制复制代码修改# File: .github/workflows/repo-sync.yml name: 自动同步 on: schedule: - cron: '0 4,16 * * *' workflow_dispatch: watch: types: started repository_dispatch: typ

- 阅读全文 -

Github 使用git将项目上传到github(最简单方法)

首先你需要一个github账号,所有还没有的话先去注册吧!https://github.com/我们使用git需要先安装git工具,这里给出下载地址,下载后一路直接安装即可:https://git-for-windows.github.io/1.进入Github首页,点击New repository新建一个项目2.填写相应信息后点击create即可 Repository name: 仓库名称Des

- 阅读全文 -

mysql 如何清除binlog

1):执行“reset master;”命令,该命令将删除bai所有二进制du日志,新日志的编号从“000001”开始,命令如zhi下Mysql>reset master; (2):执行“Purge master logs to ‘mysql-bin.’”命令,该命令将删除“”编号之前的所有日志,下列中删除了“mysql-bin之前编号的所有日志Mysql>purge master l

- 阅读全文 -

Python pyinstaller 参数

可选参数 说明-F dist文件夹中生成一个程序demo.exe文件,适用于一个模块没有多依赖.py文件-D 默认选项,除了主程序demo.exe外,还会在在dist文件夹中生成很多依赖文件,推荐使用这个-c 默认选项,只对windows有效,使用控制台-w 只对windows有效,不使用控制台-p 设置导入路径-i 给生成的demo.exe文件设置一个自定义的图标--key 后面接加密参数使用

- 阅读全文 -

Python 模式表达与正则表达式

1.国外手机判断def iphonenum(txt): if len(txt) != 12: return False for i in range(3): if not txt[i].isdecimal(): return False if txt[3] != '-': return False

- 阅读全文 -