摘要:
高级查询 ###模糊查询 select * from class where name like 'to_'; 下划线代表一个字符select * from class where name like 'to%';%代表0个或者多个字符select * from class where name r 阅读全文
posted @ 2019-11-19 13:25
chenlulu1122
阅读(106)
评论(0)
推荐(0)
摘要:
表记录增删改查 ###增insert into student values(1,'chen',25,'m'); #可以默认为空的字段可以写null,比如insert into student values(1,'chen',null,'m');或者insert into student (name 阅读全文
posted @ 2019-11-19 13:21
chenlulu1122
阅读(337)
评论(0)
推荐(0)
摘要:
##字段类型:数字类型int 整形:tinyint 微整 smallint小整 intfloat浮点型decimal(10,2)精准型bit 0 1 比特字符型char:char(32)不变长,可不填默认1 varchar(32)可变长 text 文本类型blob 二进制文本类型枚举enum('w' 阅读全文
posted @ 2019-11-19 13:19
chenlulu1122
阅读(126)
评论(0)
推荐(0)
摘要:
##配置下载sudo apt-get install mysql-serversudo apt-get install mysql-client 启动sudo /etc/init.d/mysql startsudo service mysql start登录mysql -uroot -pmysql 阅读全文
posted @ 2019-11-19 13:18
chenlulu1122
阅读(79)
评论(0)
推荐(0)
摘要:
##数据库show databases;查看所有库create database stu charset=utf8;创建库use stu;切换操作库select database();查看待操作库drop database stu;删除库 ##数据表show tables;显示库内所有表 creat 阅读全文
posted @ 2019-11-19 13:18
chenlulu1122
阅读(108)
评论(0)
推荐(0)
摘要:
flags参数扩展 1. 使用函数:re模块调用的匹配函数。如:re.compile,re.findall,re.search.... 2. 作用:扩展丰富正则表达式的匹配功能 3. 常用flag > A == ASCII 元字符只能匹配ascii码 > I == IGNORECASE 匹配忽略字母 阅读全文
posted @ 2019-11-19 13:17
chenlulu1122
阅读(257)
评论(0)
推荐(0)
摘要:
##re.findall()re.findall() 返回匹配成功的列表 注意:遇到子组的时候,返回的是子组内容列表>>> re.findall(r'a[A-Z]\S*','aBC aDE5464')['aBC', 'aDE5464'] 子组findall 返回的是子组内容列表>>>re.finda 阅读全文
posted @ 2019-11-19 13:16
chenlulu1122
阅读(129)
评论(0)
推荐(0)
摘要:
##以匹配符号切割list import re s = 'afd4afagf4dgsh'b = re.split('4', s)print(b)#['afd', 'afagf', 'dgsh'] ##以匹配符号切割,在以符号连接成str import re s = 'afd4afagf4dgsh'b 阅读全文
posted @ 2019-11-19 13:16
chenlulu1122
阅读(102)
评论(0)
推荐(0)
摘要:
基础元字符| 类别 | 元字符 | 含义| | | | 匹配字符 | . [...] [^...] \d \D \w \W \s \S |单个: .任意一个非换行(\n)字符 [...]内任意一个 [^...]内除外的任意一个 \d任意一个数字 \D非数字 \w普通字符(数字字母汉子和_) \W非普 阅读全文
posted @ 2019-11-19 13:15
chenlulu1122
阅读(115)
评论(0)
推荐(0)
摘要:
多线程"""多线程网络网络并发编程 TCP """from socket import *from threading import Threadimport os def handle(cf):# 客户专用套接字处理客户信息(cf本身已经内涵客户端IP) while True: try: data 阅读全文
posted @ 2019-11-19 13:13
chenlulu1122
阅读(236)
评论(0)
推荐(0)

浙公网安备 33010602011771号