摘要: 加密: import struct msg_bytes = "the emperor has not been half-baked in the early days of the collapse of the road, today down three points, yizhou weak 阅读全文
posted @ 2019-01-14 21:25 小鸽鸽OvO 阅读(2106) 评论(0) 推荐(0) 编辑
摘要: import socket, base64, hashlib sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) soc 阅读全文
posted @ 2019-01-14 21:24 小鸽鸽OvO 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 创建数据库连接池 import time import pymysql import threading from DBUtils.PooledDB import PooledDB, SharedDBConnection POOL = PooledDB( creator=pymysql, # 使用链 阅读全文
posted @ 2019-01-14 21:17 小鸽鸽OvO 阅读(306) 评论(0) 推荐(0) 编辑
摘要: import pymysql from DBUtils.PooledDB import PooledDB POOL = PooledDB( creator=pymysql, # 使用链接数据库的模块 maxconnections=6, # 连接池允许的最大连接数,0和None表示不限制连接数 mincached=2, # 初始化时,链接池中至少创建的空闲的链接,0表... 阅读全文
posted @ 2019-01-14 19:19 小鸽鸽OvO 阅读(147) 评论(0) 推荐(0) 编辑