下载安装mysql-connector pip install mysql-connector 连接MySQL 主要是使用mysql.connector模块的connect函数,需要注意参数的名称 import mysql.connector # 接收参数:user, password, host, Read More
一、概述 用来描述或者匹配一系列符合某个语句规则的字符 二、单个符号 英文句点.符号:匹配单个任意字符。 表达式t.o可以匹配:tno,t#o,teo等等。不可以匹配:tnno,to,Tno,t正o等。 中括号[]:只有方括号里面指定的字符才参与匹配,也只能匹配单个字符。 表达式:t[abcd]n Read More
''' 在原有的excel中设置超链接 ''' def excel_link(): neo_j_ = Neo4j150() util = neo_j_._util data_frame_link = util.excel_link(neo_j_._excel_link) book = load_wo Read More
使用和 elasticsearch 相同版本镜像 6.2.2(不一样可能会出现问题) 1、下载Kibana镜像 docker pull docker.elastic.co/kibana/kibana:6.6.2 # 查看镜像 docker images 2、编辑kibana.yml配置文件kiban Read More
kibana的版本一定要和es的版本一致 我们这里用6.2.2版本 异常详情: "warning","migrations","pid":6181,"message":"Another Kibana instance appears to be migrating the index. Waitin Read More
1、根据单行判断重复 (1)查找重复项 SELECT * FROM graph_disease_corresponding WHERE diag_pingan IN ( SELECT diag_pingan FROM `graph_disease_corresponding` GROUP BY di Read More
unwind ['医保疾病名称','症状','体征'] as labmatch (n) where any(label in labels(n) WHERE label=lab) with lab,keys(n) as kkunwind kk as kreturn lab,collect(disti Read More
步骤: 首先修改neo4j.conf配置文件,必须要修改配置后可以使用neo4j-shell。 启动Neo4j数据库。 使用 neo4j-shell 1. 修改neo4j.conf配置文件 # 修改233行,去掉前面的#,允许使用neo4j-shell,类似于mysql 命令行之类的 # Enabl Read More
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # Name GrapHan_pin # Author DELL # Date 2020/9/22 # 多线程 #多线程处理图谱数据,把图谱中所有节点都更新拼音编码属性 # import pinyin from Read More
一.两个list差集 如有下面两个数组: a = [1,2,3] b = [2,3] 想要的结果是[1] 下面记录一下三种实现方式: 1. 正常的方式 ret = [] for i in a: if i not in b: ret.append(i) 2.简化版 ret = [ i for i in Read More