C++ 11提供的智能指针有:shared_ptr、unique_ptr、weak_ptr。在 头文件 memory 中。 一、new delete 直接管理内存 1、初始化 string * ps = new string // 初始换为一个空string int * pi = new int ; ...
分类:
编程语言 时间:
2020-01-28 10:49:44
阅读次数:
99
摘自:https://www.cnblogs.com/zhuifeng-mayi/p/9270592.html 1、普通索引 这是最基本的索引,它没有任何限制,比如上文中为title字段创建的索引就是一个普通索引,MyIASM中默认的BTREE类型的索引,也是我们大多数情况下用到的索引。 -–直接创 ...
分类:
数据库 时间:
2020-01-28 09:16:57
阅读次数:
77
在使用golang go sql driver操作mysql时,往tag表插入一条新数据时,如果插入失败,id仍会自增,插入数据失败次数过多时,id就看起来十分混乱。 所以我就在搜索下原因,发现是InnoDB的机制,大致就是说InnoDB的innodb_autoinc_lock_mode模式下,自增 ...
分类:
数据库 时间:
2020-01-27 15:47:20
阅读次数:
209
Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe ...
分类:
其他好文 时间:
2020-01-27 15:17:12
阅读次数:
55
Every email consists of a local name and a domain name, separated by the @ sign. For example, in , is the local name, and is the domain name. Besides ...
分类:
其他好文 时间:
2020-01-27 09:33:24
阅读次数:
73
功能: 根据不同数据类型进行排序 格式: sort [OPTION]... [FILE]... sort [OPTION]... --files0-from=F 参数: -b, --ignore-leading-blanks 忽略每行开始前的空格 ignore leading blanks -d, ...
分类:
编程语言 时间:
2020-01-26 13:13:27
阅读次数:
116
索引类型:Unique(唯一索引,一般为主键),Normal(一般索引,普通字段,可做组合索引),索引方法:BTREE 1.选择唯一性索引 唯一性索引的值是唯一的,可以更快速的通过该索引来确定某条记录。例如,学生表中学号是具有唯一性的字段。为该字段建立唯一性索引可以很快的确定某个学生的信息。如果使用 ...
分类:
数据库 时间:
2020-01-24 00:33:37
阅读次数:
126
「Violet」蒲公英 "传送门" 区间众数,强制在线。 分块经典题。 像 "这题" 一样预处理,然后就直接爆搞,复杂度 $O(n \sqrt n)$ 参考代码: ...
分类:
其他好文 时间:
2020-01-24 00:28:06
阅读次数:
88
「CQOI2016」不同的最小割 "传送门" 建出最小割树,把每一个点对的最小割抠出来 $\text{unique}$ 一下就好了。 参考代码: ...
分类:
其他好文 时间:
2020-01-24 00:10:13
阅读次数:
53
本篇内容包括,tf.norm(张量的范数)、tf.reduce_min/max(最大最小值)、tf.argmax/argmin(最大最小值的位置)、tf.equal(张量的比较)、tf.unique(张量的独特值) 1.tf.norm · 二范数 ||x||2 = (Σxk2)1/2 · 一范数 | ...
分类:
其他好文 时间:
2020-01-23 00:14:09
阅读次数:
122