随笔分类 - python -_-
摘要:import pandas as pd import pymysql # 数据库连接信息 source_db_config = { 'host': 'source_db_host', 'user': 'source_db_user', 'password': 'source_db_password'
阅读全文
摘要:# -*- coding: utf-8 -*- # @Time : 2023-09-07 # @Author : Carl_DJ """ 实现功能: 1、python直接链接SqlServer数据库可以MySQL数据库,进行数据对比 2、对比mysql和SqlServer两个数据库的表名以及表内数据
阅读全文
摘要:使用步骤: 1、先安装pipreqs库 pip install pipreqs2、在当前目录使用生成 pipreqs ./ --encoding=utf8 --force --encoding=utf8 :为使用utf8编码 --force :强制执行,当 生成目录下的requirements.tx
阅读全文
摘要:练习笔记 """ # @Time : 2022/11/14 14:04 # @Author : Gina Gao # @File : # @Software: PyCharm # @Descript:表格跨页显示 """ import pandas as pd import pdfplumber p
阅读全文
摘要:比特虫在线制作ico图标ico图标转换工具 https://www.bitbug.net/ 参数: -i 给应用程序添加图标 -F 只生成一个exe格式的文件 -D 创建一个目录,包含exe文件,但会依赖很多文件(默认选项) -c 有黑窗口 -w 去掉黑窗口
阅读全文
摘要:合并多个EXCEL """ import os import pandas as pd import xlwt, xlrd from GINA_START.gina_baseinfo import baseinfo # 实例化 baseinfo = baseinfo() path = r'F:\小高
阅读全文
摘要:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xlwt
阅读全文
摘要:小实例: import pandas as pd df = pd.read_html(r"./素材/股票.html", encoding='GBK',header=0)[0] print(df[['代码','简称']]) 学习网址: https://www.cnblogs.com/amingcn/p
阅读全文
摘要:python多线程中Lock()与RLock()锁详解 资源总是有限的,程序运行如果对同一个对象进行操作,则有可能造成资源的争用,甚至导致死锁 也可能导致读写混乱 锁提供如下方法: 1.Lock.acquire([blocking]) 2.Lock.release() 3.threading.Loc
阅读全文
摘要:canal ,是 mysql增量订阅&消费工具 详细的说明文档, https://zhuanlan.zhihu.com/p/165428937
阅读全文
摘要:数据多维处理:import pandas as pd #多层索引 new_ind=['begin','end','ID'] # df1=pd.read_excel(r'F:\小高天天乐\python_PM\AUTO_DATA\test00100\1.xlsx') df1=pd.read_excel(
阅读全文
摘要:学习网址 :下载 中商情报网 爬虫 https://www.jianshu.com/p/fd8502962716 from sqlalchemy import create_engine # Django web的项目要把爬取的一些数据存入MySQL中,数据保存为csv格式,想到pandas中有to
阅读全文
浙公网安备 33010602011771号