楔子 索引的概念基本所有人都会遇到过,就算没有了解过数据库中的索引,在生活中也不可避免的接触到。比方说书籍的目录,字典的查询页,图书馆的科目检索等等。其实这些都是一种索引,并且所起到的作用大同小异。 而对于数据库而言,只不过是将索引的概念抽象出来,让建立索引的过程更为灵活而自由,从而可以在不同的场景 ...
分类:
数据库 时间:
2020-06-23 17:26:51
阅读次数:
47
Django rest framework(6) 分页 第一种分页 PageNumberPagination 基本使用 (1)urls.py urlpatterns = [ re_path('(?P<version>[v1|v2]+)/page1/', Pager1View.as_view(),) ...
分类:
其他好文 时间:
2020-06-22 21:15:27
阅读次数:
56
题目如下: Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: a ...
分类:
其他好文 时间:
2020-06-22 15:12:41
阅读次数:
60
In a deck of cards, every card has a unique integer. You can order the deck in any order you want. Initially, all the cards start face down (unreveale ...
分类:
其他好文 时间:
2020-06-22 13:13:01
阅读次数:
57
The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following seque ...
分类:
其他好文 时间:
2020-06-21 10:13:55
阅读次数:
48
阅读目录 概览 not null unique primary key foreign key 概览 为了防止不符合规范的数据进入数据库,在用户对数据进行插入、修改、删除等操作时,DBMS自动按照一定的约束条件对数据进行监测,使不符合规范的数据不能进入数据库,以确保数据库中存储的数据正确、有效、相容 ...
分类:
数据库 时间:
2020-06-21 10:10:31
阅读次数:
63
3.3.1创建和查看数据表一、查看数据表 1.use onlinedb; 将数据库设为当前数据库 2.show tables; 查看数据库中的表 3.create table users( uID int(11) PRIMARY KEY AUTO_INCREMENT COMMENT '用户ID' u ...
分类:
数据库 时间:
2020-06-19 20:44:17
阅读次数:
115
数组去重的方法 一、利用ES6 Set去重(ES6中最常用) function unique (arr) { return Array.from(new Set(arr)) } var arr = [1,1,'true','true',true,true,15,15,false,false, und ...
分类:
编程语言 时间:
2020-06-18 22:04:25
阅读次数:
76
Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements. Example 1: Input: arr = [ ...
分类:
其他好文 时间:
2020-06-18 13:10:04
阅读次数:
64
ID3,C4.5算法缺点 ID3决策树可以有多个分支,但是不能处理特征值为连续的情况。 在ID3中,每次根据“最大信息熵增益”选取当前最佳的特征来分割数据,并按照该特征的所有取值来切分, 也就是说如果一个特征有4种取值,数据将被切分4份,一旦按某特征切分后,该特征在之后的算法执行中, 将不再起作用, ...
分类:
编程语言 时间:
2020-06-17 20:29:17
阅读次数:
57