1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 5 namespace 数据结构 6 { 7 public class CircleQueue<T> 8 { 9 //队列最大容量 10 privat ...
分类:
其他好文 时间:
2020-04-12 08:04:05
阅读次数:
67
// 常用命令 show dbs // 查看所有数据库列表 db // 查看当前连接的是哪个库 use test // 新建数据库 & 切换到test库 db.dropDatabase() // 删库 show collections // 查看当前库下的集合(表) db.test.insert({ ...
分类:
数据库 时间:
2020-04-11 23:39:07
阅读次数:
87
ylbtech-Code-Serialization:Xml序列化与Xml反序列化 1.返回顶部 1、 using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.T ...
分类:
其他好文 时间:
2020-04-11 18:32:55
阅读次数:
60
这几天一直做优化的事情,对于资源这一块优化,资源异步加载作为首选,因2018之后版本中弃用了WWW请求,所以今天我们以UnityWebRequest请求方式介绍,基本上是一个整理。usingSystem.Collections;usingSystem.Collections.Generic;usingUnityEngine;usingUnityEngine.Networking;publiccla
分类:
编程语言 时间:
2020-04-11 09:48:43
阅读次数:
87
一、为什么要使用LINQ 假设有一个整数类型的数组,找到里面的偶数并进行降序排序。 在C#2.0以前,如果要实现这样的功能,我们必须使用'foreach'或'for'循环来遍历数组,先找到偶数然后在降序排序,相关代码如下: using System; using System.Collections ...
分类:
其他好文 时间:
2020-04-11 09:32:55
阅读次数:
58
1. 解压缩字符串 1 package Exe1; 2 3 import java.util.Collections; 4 import java.util.Scanner; 5 6 /** 7 * @author zzm 8 * @data 2020/4/10 18:16 9 * 小Q想要给他的朋 ...
分类:
其他好文 时间:
2020-04-11 00:30:44
阅读次数:
247
集合框架·Map 和 Collections集合工具类 Map集合的概述和特点 * A:Map接口概述 * 查看API可知: * 将键映射到值的对象 * 一个映射不能包含重复的键 * 每个键最多只能映射到一个值 * B:Map接口和Collection接口的不同 * Map是双列的,Collecti ...
分类:
编程语言 时间:
2020-04-10 22:45:15
阅读次数:
68
界面: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading ...
分类:
其他好文 时间:
2020-04-10 13:34:45
阅读次数:
273
1 python队列实现,使用队列的时候要用collections来实现,这样更方便,因为它有类似list的用法,而用deque模块实现的队列用的是get,put方法, # python3里面用queue模块 from queue import Queue q = Queue() q.put(3) ...
分类:
其他好文 时间:
2020-04-10 12:08:28
阅读次数:
84
Collection 和 Collections 有什么区别? 答: Collection是集合类的顶级接口,其派生了两个子接口 Set 和 List。该接口的设计目标是为各种具体的集合提供最大化的统一操作方式。 Collections则是集合类的一个工具类/帮助类,其中提供了一系列静态方法。用于对 ...
分类:
其他好文 时间:
2020-04-09 10:42:34
阅读次数:
69