集合之List和Set Collection下的子接口:List、Set 一、List List集合下最常见的集合类有两个:ArrayList和LinkedList 众所周知,ArrayList底层是数组,LinkedList底层是链表。数组遍历速度快,LinkedList增删元素快。 1.1、为什 ...
分类:
其他好文 时间:
2020-06-14 20:24:26
阅读次数:
58
Result Maps collection already contains value for com.zhaike.mapping.ChapterMapper.BaseResultMap Error creating bean with name 'courseController': Uns ...
分类:
其他好文 时间:
2020-06-13 21:43:13
阅读次数:
74
postman使用,postman接口测试,json接口,Collection测试集,Tests测试代码,console ...
分类:
Web程序 时间:
2020-06-13 17:16:23
阅读次数:
90
package LeetCode_40 /** * 40. Combination Sum II * https://leetcode.com/problems/combination-sum-ii/description/ * * Given a collection of candidate n ...
分类:
其他好文 时间:
2020-06-13 15:59:33
阅读次数:
59
一、插入文档 文档的数据结构和 JSON 基本一样。所有存储在集合中的数据都是 BSON 格式。BSON 是一种类似 JSON 的二进制形式的存储格式,是 Binary JSON的简称。 MongoDB使用insert()或save()方法向集合中插入文档,语法如下: db.COLLECTION_N ...
分类:
数据库 时间:
2020-06-13 10:53:00
阅读次数:
73
创建数据库: use DATABASE_NAME 查看所有数据库: show dbs 删除数据库: db.dropDatabase() 删除集合: db.collection.drop() 创建集合: db.createCollection(name, options) 参数说明: name:要创建 ...
分类:
数据库 时间:
2020-06-12 20:34:03
阅读次数:
66
前言 使用 pytest.mark.parametrize 参数化的时候,加 ids 参数用例描述有中文时,在控制台输出会显示unicode编码,中文不能正常显示。 使用 pytest_collection_modifyitems 钩子函数,对输出的 item.name 和 item.nodeid ...
分类:
其他好文 时间:
2020-06-11 00:32:46
阅读次数:
93
https://blog.csdn.net/feiyanaffection/article/details/81394745 一、集合大纲 1.集合和数组的区别: 2.Collection集合的方法: 3.常用集合的分类:Collection 接口的接口 对象的集合(单列集合)├——-List 接口 ...
分类:
编程语言 时间:
2020-06-10 13:20:51
阅读次数:
62
1. ArrayList 和 Vector 的区别。
这两个类都实现了 List 接口(List 接口继承了 Collection 接口),他们都是有序集
合,即存储在这两个集合中的元素的位置都是有顺序的,相当于一种动态的数组,我
们以后可以按位置索引号取出某个元素,并且其中的数据是允许重复的,这是
HashSet 之类的集合的最大不同处,HashSet 之类的集合不可以按索引号去检索其
中的元素,也不允许有重复的元素(本来题目问的与 hashset 没有任何关系,但为了
说清楚 ArrayList 与 Vector 的功能,我们使用对比方式,更有利于说明问题)。接
着才说 ArrayList 与 Vector 的区别,这主要包括两个方面。
分类:
其他好文 时间:
2020-06-10 09:34:44
阅读次数:
95
一、前言 Newman是Postman的命令行集合运行器。可以直接运行接口集合脚本。 安装Newman这里不概述,自行百度安装。注意:安装前需安装Node.js Newman更多用法见:https://learning.getpostman.com/docs/postman/collection_r ...
分类:
其他好文 时间:
2020-06-09 16:17:04
阅读次数:
75