这周做了一个PC端的service后台需求,要求有富文本编辑器,插入图片、表格,字体字号背景色等等, 最后引入了富文本编辑器TinyMCE 对于TinyMCE的简介: TinyMCE是一款易用、且功能强大的所见即所得的富文本编辑器。同类程序有:UEditor、Kindeditor、Simditor、 ...
分类:
其他好文 时间:
2020-04-10 21:09:39
阅读次数:
709
约束 概述 为了保证数据的一致性和完整性,SQL规范以约束的方式对表数据进行额外的条件限制。 约束是表级的强制规定。 可以在创建表的时候添加约束,或者在表创建之后数据添加之前添加约束。 约束类型 有如下的六大约束: NOT NULL,非空约束,规定某个字段不能为空。 UNIQUE,唯一约束,规定某个 ...
分类:
数据库 时间:
2020-04-09 14:15:49
阅读次数:
95
1. 索引本质索引是存储引擎快速找到记录的一种数据结构。2. 索引的分类1)主键索引(PRIMARY KEY):列的值必须唯一且不允许有NULL值。一张表只允许有一个主键。2)唯一索引(UNIQUE) :唯一索引列的值必须唯一,允许有NULL值。3)普通索引:4)组合索引:索引包含多个列。5)全文索... ...
分类:
数据库 时间:
2020-04-08 12:17:48
阅读次数:
91
题目描述 In a village called Byteville, there are houses connected with N-1 roads. For each pair of houses, there is a unique way to get from one to anoth ...
分类:
其他好文 时间:
2020-04-07 18:17:31
阅读次数:
69
1.通过外部文件导入数据表 2.通过填入数据生成数据表 3.检查数据表的维度:shape属性 结果输出 (6,6) 4.查看数据表信息 5.查看数据表数据格式:dtypes属性 6.空值检查isnull()函数(非空False,空True) 7.查看某列数据唯一值:unique()函数 8.查看列名 ...
分类:
编程语言 时间:
2020-04-07 12:56:07
阅读次数:
104
1.创建普通索引 创建一个普通索引时,不需要加任何UNIQUE、FULLTEXT或者SPATIAL参数。 下面创建一个表名为index1的表,在表中的id字段上建立索引。SQL代码如下: CREATE TABLE index1 (id INT , name VARCHAR(20) , sex BOO ...
分类:
数据库 时间:
2020-04-07 12:42:44
阅读次数:
105
题目描述 In a village called Byteville, there are $n$ houses connected with $n 1$ roads. For each pair of houses, there is a unique way to get from one to ...
分类:
其他好文 时间:
2020-04-07 00:16:06
阅读次数:
70
Given 2 lists a and b. Each element is a pair of integers where the first integer represents the unique id and the second integer represents a value. ...
分类:
其他好文 时间:
2020-04-06 10:06:59
阅读次数:
72
题目如下: There are n soldiers standing in a line. Each soldier is assigned a unique rating value. You have to form a team of 3 soldiers amongst them unde ...
分类:
其他好文 时间:
2020-04-04 14:39:27
阅读次数:
69
一、数组的添加删除与去重 下面是几个常见的数组操作: append:将值添加到数组末尾 insert: 沿指定轴将值插入到指定下标之前 delete: 返回删掉某个轴的子数组的新数组 unique: 寻找数组内的唯一元素 >>> a = np.array([[1,2,3],[4,5,6]]) >>> ...
分类:
其他好文 时间:
2020-04-04 11:36:50
阅读次数:
117