摘要: 读取doc,docx文件 1. 使用office,wps工具打开文件另存为 2. 针对doc文件,antiword 提取doc文件信息 2.1 安装 windows Linux 2.2 使用说明 antiword t xxx.doc 输出文件信息 antiword f xxx.doc 格式化输出文件 阅读全文
posted @ 2020-03-11 13:46 今日店休 阅读(374) 评论(0) 推荐(0) 编辑
摘要: error:The MySQL server is running with the secure file priv option so it cannot execute this statement。 1. 查看当前secure file priv 登录mysql show variables 阅读全文
posted @ 2020-02-14 20:57 今日店休 阅读(583) 评论(0) 推荐(0) 编辑
摘要: cd 命令 cd path 进入指定路径 cd ../ 进入上一级目录 cd - 进入上一次的目录并返回路径 df 查看系统磁盘内存使用情况 df -h size转换成常用格式,比如k,mb,g du 用于显示目录或文件的大小 -h 以K,M,G为单位,提高信息的可读性 du -sh 显示当前目录的 阅读全文
posted @ 2020-02-14 20:56 今日店休 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1. docker 导出和导入镜像 容器保存为镜像 docker commit [options] 容器名称 镜像名称:镜像tag -a :提交的镜像作者; -c :使用Dockerfile指令来创建镜像; -m :提交时的说明文字; -p :在commit时,将容器暂停。 docker commi 阅读全文
posted @ 2020-02-14 20:31 今日店休 阅读(224) 评论(0) 推荐(0) 编辑
摘要: gzip gunzip gzip 压缩文件命令 参数: -d 压缩文件解压,将tgz包解压为tar包 例如: gzip server.tar > server.tgz gzip -dv server.tgz 解压文件并显示文件名和压缩比 gunzip 解压文件命令,默认删除源文件 tar tar - 阅读全文
posted @ 2020-01-16 10:18 今日店休 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 前言: 需要异步操作MySQL,又要用orm,使用sqlalchemy需要加celery,觉得比较麻烦,选择了peewee async 开发环境 python3.6.8+peewee async0.5.12+peewee2.10.2 数据库:MySQL,使用peewee async需要依赖库 pip 阅读全文
posted @ 2019-12-18 21:25 今日店休 阅读(1679) 评论(1) 推荐(0) 编辑
摘要: 背景: win10 docker 有几天没有用Oracle数据库,突然发现数据库挂了 docker start oracle 报错 具体错误信息: Error starting userland proxy: /forwards/expose/port returned unexpected sta 阅读全文
posted @ 2019-12-18 21:21 今日店休 阅读(462) 评论(0) 推荐(0) 编辑
摘要: 不使用数据库的情况下实现异步 使用gen.sleep()模拟阻塞 + 使用gen.sleep(time) 而不是time.sleep(),time.sleep()阻塞整个进程,看gen.sleep()源码,sleep方法返回了一个tuture对象,不是处于阻塞状态而是等待time时间后调用callb 阅读全文
posted @ 2019-12-17 13:45 今日店休 阅读(927) 评论(0) 推荐(0) 编辑
摘要: git 修改用户名邮箱 git config --global user.name uname 全局设置用户名 git config --global user.email xxxxx.com 全局设置邮箱 git config user.name name 修改当前project用户 git co 阅读全文
posted @ 2019-12-13 16:56 今日店休 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1、文件夹和package有什么区别,import的时候第一步做了什么操作 package比文件夹多了一个init.py文件,只有包才可以被import,init文件初始为空,当import的时候先去调用包下面的init文件,可以将一些初始化操作写在init文件中 2、进程,线程,协程定义,有什么区 阅读全文
posted @ 2019-10-22 14:00 今日店休 阅读(199) 评论(0) 推荐(0) 编辑