本文转自https://www.freeaihub.com/article/using-pymysql-to-operate-mysql-in-python.html,该页可在线进行本页内容的实验 本节实验您将先进行MySQL的安装,再安装python的pymysql库,通过这个库连接到MySQL数 ...
分类:
数据库 时间:
2020-07-02 09:24:02
阅读次数:
71
一、消息队列 RabbitMQ是目前非常热门的一款消息中间件,不管是互联网大厂还是中小企业都在大量使用。 1.1 什么是消息队列 MQ全称为Message Queue,即消息队列。“消息队列”是在消息的传输过程中保存消息的容器。它是典型的:生产者、消费者模型。生产者不断向消息队列中生产消息,消费者不 ...
分类:
编程语言 时间:
2020-06-29 11:54:48
阅读次数:
71
python 操作数据库 import pymysql # 第一步:连接到数据库 conn = pymysql.connect(host="120.78.128.25", port=3306, user="future", password="123456", charset="utf8", cur ...
分类:
数据库 时间:
2020-06-26 12:53:33
阅读次数:
67
从PDF读取文本内容和从已经有的文档生成新的PDF。需要用到的模块是PyPDF2.同时,还要关注较新的PyPDF4包,因为它很快就会取代PyPDF2。也可以看看pdfrw包,它也可以执行许多与PyPDF2相同的操作。https://zhuanlan.zhihu.com/p/98626155首先安装P... ...
分类:
编程语言 时间:
2020-06-24 14:00:43
阅读次数:
97
一.python操作mysql 1.1 基本语法 创建连接 host user passwor database 这四个参数必须写 import pymysql conn=pymysql.connect(host="127.0.0.1",user="root",password="",databas ...
分类:
编程语言 时间:
2020-06-20 16:36:33
阅读次数:
62
用python处理Excel数据,实现Excel的功能:分列、透视等功能 1. Excel 解压文件 #解压tar_path中的压缩文件到uzipPath def unzip_archive(tar_path): print('#######解压文件夹,',tar_path) for i in os ...
分类:
编程语言 时间:
2020-06-19 20:29:42
阅读次数:
93
原文:https://www.cnblogs.com/rongge95500/p/11655322.html 经常使用python操作Excel,就会遇到各种坑,比如,有时候你读取到的某一单元格的数据,你预想的结果本来应该是这样的 ['2019-03-26', '2019-03-26'...],但是 ...
分类:
其他好文 时间:
2020-06-18 19:52:19
阅读次数:
56
import MySQLdb #查询数量 def Count(cur): count=cur.execute('select * from Student') print ('there has %s rows record' % count) #插入 def Insert(cur): sql = ...
分类:
数据库 时间:
2020-06-15 17:54:50
阅读次数:
78
xlrd和xlwt 安装代码 pip3 install xlrd pip3 install xlwt xlrd 打开文件 xlrd.open_workbook(filename=None, logfile=<_io.TextIOWrapper name='<stdout>' mode='w' enc ...
分类:
编程语言 时间:
2020-06-15 14:22:06
阅读次数:
65
1.mysql操作 1 import pymysql 2 from DBUtils.PooledDB import PooledDB 3 4 5 class SQLHandler(object): 6 def __init__(self, host, port, db_username, db_pa ...
分类:
数据库 时间:
2020-06-14 15:06:26
阅读次数:
88