摘要: 安装: Windows: 1,下载安装包:点击下载。 2,安装。安装过程中注意勾选所需语言包,否则默认只解析英文。 3,将根目录添加进环境变量。 4,cmd输入命令测试安装结果。 # 查看版本 tesseract -v # 查看支持的语言列表 tesseract --list-langs Linux 阅读全文
posted @ 2021-07-07 11:42 何效名 阅读(1228) 评论(0) 推荐(0)
摘要: 执行命令: yum install -y centos-release-scl yum install devtoolset-8-gcc* 完成后执行: # 切换当前会话中gcc版本为8 scl enable devtoolset-8 bash 或者: # 直接替换旧的gcc mv /usr/bin 阅读全文
posted @ 2021-07-07 10:40 何效名 阅读(1922) 评论(1) 推荐(0)
摘要: python -m ensurepip python -m pip install --upgrade pip 阅读全文
posted @ 2021-07-07 09:15 何效名 阅读(81) 评论(0) 推荐(0)
摘要: # 引入包 import os, shutil, ftplib, zipfile, datetime; # mysqldump命令路径 mysqldump = 'mysqldump'; # mysql配置 user = 'xmsb'; pwd = '123456'; # 要备份的库名.表名 data 阅读全文
posted @ 2021-06-11 15:52 何效名 阅读(356) 评论(0) 推荐(0)
摘要: 经常用到,但总是记不下来,干脆写个博客备份一下。 单行: overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 多行(需要webkit内核支持): overflow: hidden; display: -webkit-box; 阅读全文
posted @ 2021-05-26 09:37 何效名 阅读(194) 评论(0) 推荐(0)
摘要: 目前已集成: 接收、回复被动消息 创建自定义菜单 获取用户基本信息 网页授权并获取用户基本信息 调用微信JS-SDK <?php /** * 微信公众号基本操作类 * 作者:何效名 */ class WeChat { private $appId = ''; private $appSecret = 阅读全文
posted @ 2021-05-12 13:54 何效名 阅读(385) 评论(1) 推荐(1)
摘要: 首先安装mysql-connector模块: pip install mysql-connector 模块使用方式: # 引入模块 import mysql.connector; # 连接数据库 db = mysql.connector.connect( host = "localhost", us 阅读全文
posted @ 2021-04-24 17:45 何效名 阅读(90) 评论(0) 推荐(0)
摘要: from win32com.client import constants, gencache def word2Pdf(wordPath, pdfPath): word = gencache.EnsureDispatch('Word.Application'); # office # word = 阅读全文
posted @ 2021-04-24 10:31 何效名 阅读(476) 评论(0) 推荐(1)
摘要: 今天执行一个数据处理任务时,觉得效率太差,于是对问题进行了排查,后来发现问题出自对大数组进行[in_array]判断上。 以下为原本的大体业务逻辑: $dataIds = array; $resultData = []; foreach($otherList as $item) { if(!in_a 阅读全文
posted @ 2021-04-16 14:32 何效名 阅读(381) 评论(0) 推荐(0)
摘要: demo源码下载:点击下载 HTML代码(index.html): 注:代码编撰区域使用开源项目 ACE (Ajax.org Cloud9 Editor) 实现 <!DOCTYPE html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta 阅读全文
posted @ 2021-04-13 10:02 何效名 阅读(1758) 评论(0) 推荐(0)