随笔分类 - pyhotn
摘要:下载安装mysql-connector pip install mysql-connector 连接MySQL 主要是使用mysql.connector模块的connect函数,需要注意参数的名称 import mysql.connector # 接收参数:user, password, host,
阅读全文
摘要:''' 在原有的excel中设置超链接 ''' def excel_link(): neo_j_ = Neo4j150() util = neo_j_._util data_frame_link = util.excel_link(neo_j_._excel_link) book = load_wo
阅读全文
摘要:#!/usr/bin/python3 # -*- coding: utf-8 -*- # # Name GrapHan_pin # Author DELL # Date 2020/9/22 # 多线程 #多线程处理图谱数据,把图谱中所有节点都更新拼音编码属性 # import pinyin from
阅读全文
摘要:一.两个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
阅读全文

浙公网安备 33010602011771号