当前位置:首页 > 第4页

python随机时间范围/随机时间段

zhangchap1年前 (2022-11-23)353
import datetime,random # 昨天时间 today = datetime.date.today() # 今天时间 yest...

python 给文章段落添加序列号

zhangchap1年前 (2022-11-18)207
xuhaos = ['(1)','(2)','(3)','(4)','(5)','(6)&#...

mysql导出指定语句的数据到新数据库

zhangchap1年前 (2022-11-15)168
1、在Navicat里运行sql语句 把查询结果导出为txt,直接导出为sql语句,再导入没成功,所以笨办法走起 2、新建数据库,导出表结构 3、导入查询结果里的txt 4、此...

python中运行php文件

zhangchap1年前 (2022-11-13)193
import subprocess def run_php():     proc = subprocess.P...

生成requirements.txt 文件

zhangchap2年前 (2022-10-31)224
1、先安装pipreqs库pip install pipreqs2、在当前目录使用生成pipreqs ./ --encoding=utf8 --for...

python random模块 随机生成数字

zhangchap2年前 (2022-08-08)226
Python自带的random库1.参生n–m范围内的一个随机数: random.randint(n,m) 2.产生0到1之间的浮点数: random.random() 3.产...

elasticsearch 分词器的选择及安装中文分词插件

zhangchap2年前 (2022-07-28)775
Elasticsearch中内置了很多分词器:standard、cjk、nGram等,也可以安装ik、pinyin等开源分词器, 可以根据业务场景选择合适的分词器。常用分词器: standard:El...

elasticsearch常用接口

zhangchap2年前 (2022-07-28)195
相关接口1. 默认端口地址http://127.0.0.1:9200/2. 查看索引库信息http://127.0.0.1:9200/_cat/indices?v3. 搜索索引里面的内容http://...

elasticsearch 127.0.0.1:9200 连接被重置

zhangchap2年前 (2022-07-28)455
之前安装过7.0的版本没有问题,现在用最新版的8.3.2的版本,启动后访问 9200端口提示连接被重置一下是解决方案:config目录中的elasticsearch.yml将xpack.securit...

elasticsearch安装步骤及运行

zhangchap2年前 (2022-07-28)178
elasticsearch安装步骤及运行
下载链接:https://www.elastic.co/cn/downloads/elasticsearch虽然服务器是国外的,但是下载速度很快解压到D盘根目录,避免兼容性,不要有中文的路径打开bin...