摘要: 上图 阅读全文
posted @ 2019-07-24 21:23 IT_Allen 阅读(128) 评论(0) 推荐(0)
摘要: 文件一: 调用(sqls文件) 1 # 导入模块 2 import pymysql 3 from sqls import * 4 # 创建类 5 class KaoShi(object): 6 7 # 初始化 8 def __init__(self): 9 self.db = pymysql.con 阅读全文
posted @ 2019-07-24 21:12 IT_Allen 阅读(222) 评论(0) 推荐(0)
摘要: 线程读写操作 进程池相关 阅读全文
posted @ 2019-07-24 21:03 IT_Allen 阅读(386) 评论(0) 推荐(0)
摘要: 建议用 TXT 文档来写代码 然后粘贴至cmd命令直接运行创建students库,表名为student,表包含以下字段: id(主键) name(姓名) age(年龄) sex(性别) sc(综合积分) ; insert student values(0,"小姐",1,24,188) create table student( id int auto_increment primary... 阅读全文
posted @ 2019-07-24 20:48 IT_Allen 阅读(1132) 评论(0) 推荐(0)
摘要: import random import threading, multiprocessing import time, datetime import pymysql import queue con = pymysql.Connect( host='127.0.0.1', # IP配置 port 阅读全文
posted @ 2019-07-24 20:40 IT_Allen 阅读(153) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-07-24 20:36 IT_Allen 阅读(96) 评论(0) 推荐(0)
摘要: 创建一个 表 create table student( id int(10) not null unique auto_increment primary key, name varchar(30), sex varchar(4), yuanxi varchar(50), zhuzhi varch 阅读全文
posted @ 2019-07-24 15:51 IT_Allen 阅读(158) 评论(0) 推荐(0)