11 2019 档案

摘要:1 text是xxxx年xx月xx日 re.sub('年月','-',text[:-1]). 2 阅读全文
posted @ 2019-11-27 10:51 jackduan1 阅读(2838) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/qq_29719097/article/details/80650742 当连接异常时,用try expect, 使用retry获取异常后重复操作 阅读全文
posted @ 2019-11-27 10:46 jackduan1 阅读(1962) 评论(0) 推荐(0)
摘要:1分隔一个用 str.split() 分隔多个字符串 re.split(',|;|:',str) 2替换一个 str.replace() 替换多个 re.sub(r"[‘’“”ˇ\n\s,。]*", "", text) 阅读全文
posted @ 2019-11-27 10:39 jackduan1 阅读(4385) 评论(0) 推荐(0)
摘要:https://github.com/tesseract-ocr/tesseract/wiki windows安装简单 https://blog.csdn.net/showgea/article/details/82656515 linux安装 ubuntu18 apt默认安装4.0 要安装5.0, 阅读全文
posted @ 2019-11-19 17:08 jackduan1 阅读(611) 评论(0) 推荐(0)
摘要:参考:https://blog.csdn.net/fairydetail/article/details/82345010 换成清华源 https://mirror.tuna.tsinghua.edu.cn/help/ubuntu/ 使用root登录,设置root密码 https://blog.cs 阅读全文
posted @ 2019-11-19 09:43 jackduan1 阅读(1177) 评论(0) 推荐(0)
摘要:以下分为 索引文档(insert) 和 查询文档(select) 1 一个index只有一个type 索引文档时,使用 _doc来代替type 查询某一条文档 查询姓smith的 2 查询姓smith的,并大于30岁的 DSL 1使用 a and b 2查询a,过滤b 3短语搜索, 包含关键字的全部 阅读全文
posted @ 2019-11-14 18:09 jackduan1 阅读(738) 评论(0) 推荐(0)
摘要:https://cloud.tencent.com/developer/article/1467734 后端返回json字符串, 需要转成json对象 JSON.parse(json) 阅读全文
posted @ 2019-11-06 16:32 jackduan1 阅读(1952) 评论(0) 推荐(0)