mysql explain亲测 1 where后面字段加索引:数据库类型如果是字符串类型 查询where的时候必须要用 字符串 类型必须一致 否则不用索引 type还是会是all的 ps:如果where有2个字段匹配 那就要2个字段加上索引 这里有必要说明下 btree索引支持匹配索引第一列 也就是 ...
分类:
数据库 时间:
2019-11-16 19:31:30
阅读次数:
87
/preg_macth(正则, 待匹配字符串返回 0 次(不匹配),返回 1 次表示匹配) //preg_macth_all(正则, 待匹配字符串返回完整匹配次数(可能是0),或者如果发生错误返回FALSE //preg_repalce(正则,替换字符,待匹配字符) //邮政编码的检测 $str = ...
分类:
Web程序 时间:
2019-11-16 17:56:01
阅读次数:
98
```bash # 建立数据库用户及权限 create database placement; grant all privileges on placement.* to placement@'localhost' identified by 'Abc@123'; grant all privil... ...
分类:
其他好文 时间:
2019-11-16 11:03:23
阅读次数:
183
Let us define a magic grid to be a square matrix of integers of size n×nn×n, satisfying the following conditions. All integers from 00 to (n2?1)(n2?1) ...
分类:
其他好文 时间:
2019-11-16 00:27:55
阅读次数:
54
find_all()简单说明: find_all() find_all() 方法搜索当前tag的所有tag子节点,并判断是否符合过滤器的条件 用法一: rs=soup.find_all('a') 将返回soup中所有的超链接内容 类似的还有rs.find_all('span')、rs.find_al ...
分类:
编程语言 时间:
2019-11-15 22:46:03
阅读次数:
157
冷备份cp scp冷恢复cp scp#1修改auto.cnf#如果是root权限,修改/var/lib/mysql下所有文件属主 属组成Mysql 热备份mysqldump 库名 > 文件 #提取备份库mysqldump 库名 表名 > 文件 #提取备份表mysqldump --all-databa ...
分类:
数据库 时间:
2019-11-15 18:47:17
阅读次数:
95
论文创新点: 多头注意力 transformer模型 Transformer模型 上图为模型结构,左边为encoder,右边为decoder,各有N=6个相同的堆叠。 encoder 先对inputs进行Embedding,再将位置信息编码进去(cancat方式),位置编码如下: 然后经过多头注意力 ...
分类:
其他好文 时间:
2019-11-15 12:13:50
阅读次数:
90
1.安装 选择protobuf all 3.10.1.tar.gz就行 解压并安装,编译 ...
分类:
编程语言 时间:
2019-11-15 12:02:32
阅读次数:
91
383. Ransom Note Easy Easy Easy Given an arbitrary ransom note string and another string containing letters from all the magazines, write a function t ...
分类:
其他好文 时间:
2019-11-15 10:44:24
阅读次数:
79
PHP部分 <?php error_reporting(E_ALL); set_time_limit(0);// 设置超时时间为无限,防止超时 date_default_timezone_set('Asia/shanghai'); class WebSocket { const LOG_PATH = ...
分类:
Web程序 时间:
2019-11-14 23:29:01
阅读次数:
108