随笔分类 - python
摘要:最近经常oracle数据库或mysql数据库的大量数据导入工作,所以利用python编写了简单小巧人一个快速导入的工具.话不多说直接上代码. 1、配置文件 ################生产配置################[sync] #original:1-ORACLE|2-MYSQL|3-
阅读全文
摘要:代码如下 #!/usr/bin/env python import sys sys.path.append('/home/spark/opt/hive-1.2.1/lib/py') from hive_service import ThriftHive from hive_service.ttype
阅读全文
摘要:import pymysql #导入 pymysql #打开数据库连接 db= pymysql.connect(host="localhost",user="root", password="123456",db="test",port=3307) # 使用cursor()方法获取操作游标 cur
阅读全文
摘要:import osfrom PIL import Imagefrom reportlab.pdfgen import canvasdef image_resize(img, width, height): """ 图片缩放 :param img: 图片路径 :param width: 宽 :para
阅读全文
posted @ 2021-07-01 17:01
趴嘞怪


浙公网安备 33010602011771号