Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2019-10-19 20:19:00
阅读次数:
84
动态内存与智能指针 智能指针分为shared_ptr、unique_ptr、weak_ptr,他们负责自动释放所指向的对象,shared_ptr允许多个指针指向同一个对象,unique_ptr独占所指向的对象,weak_ptr是一种弱引用,指向shared_ptr所管理的对象,他们都定义在memor ...
分类:
其他好文 时间:
2019-10-19 19:08:57
阅读次数:
102
今天来聊mybatis的join查询,怎么说呢,有点的时候,join查询确实能提升查询效率,今天举个left join的例子,来看看mybatis的join查询。 创建数据表:admin_user、admin_groups 创建实体类:AdminUserJoinGroups.java service ...
分类:
其他好文 时间:
2019-10-19 17:36:58
阅读次数:
334
Pandas的数据结构 一、Series Series是一种类似与一维数组的对象,由下面两个部分组成: values:一组数据(ndarray类型) index:相关的数据索引标签 Series的创建 两种创建方式: 由列表或numpy数组创建 默认索引为0到N 1的整数型索引(隐式索引) 0 1 ...
分类:
其他好文 时间:
2019-10-17 17:55:28
阅读次数:
88
[TOC]更新、更全的《机器学习》的更新网站,更有python、go、数据结构与算法、爬虫、人工智能教学等着你:https://www.cnblogs.com/nickchen121/# 决策树(鸢尾花分类)# 一、导入模块```pythonimport numpy as npimport matp... ...
分类:
其他好文 时间:
2019-10-16 18:11:42
阅读次数:
120
1 2 3 4 5 6 7 8 9 10 11 12 13 14 ... ...
Motivation Since 2008, guests and hosts have used Airbnb to travel in a more unique, personalized way.I want to use a dateset from Airbnb to help peop ...
分类:
其他好文 时间:
2019-10-16 13:15:25
阅读次数:
88
一、索引基础 索引是对数据库表中一列或多列的值进行排序的一种结构,可以让我们查询数据库变得 更快。MongoDB 的索引几乎与传统的关系型数据库一模一样,这其中也包括一些基本的查 询优化技巧。 下面是创建索引的命令: db.user.ensureIndex({"username":1}) 获取当前集 ...
分类:
数据库 时间:
2019-10-15 20:57:09
阅读次数:
112
处理重复数据 1、防止表中出现重复数据 你可以在 MySQL 数据表中设置指定的字段为 PRIMARY KEY(主键) 或者 UNIQUE(唯一) 索引来保证数据的唯一性。 1.1、 使用 primary key 确保数据的唯一性,数据不能为null CREATE TABLE person_tbl ...
分类:
其他好文 时间:
2019-10-15 10:17:40
阅读次数:
78
1. 主键约束(Primay Key Coustraint) 唯一性,非空性 2. 外键约束 (Foreign Key Counstraint)需要建立两表间的关系并引用主表的 3. 唯一约束 (Unique Counstraint)唯一性,可以空,但只能有一个 4. 默认约束 (Default C ...
分类:
其他好文 时间:
2019-10-14 15:06:31
阅读次数:
1130