码迷,mamicode.com
首页 >  
搜索关键字:collections    ( 9831个结果
Lambda表达式
自己保存一些偶尔用的到的Lambda表达式小技巧 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sys ...
分类:其他好文   时间:2020-01-10 00:40:56    阅读次数:75
Linq 对string[]字符串数组进行排序 (升序、降序、乱序)
using System;using System.Collections;using System.Linq;namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] array = { "... ...
分类:编程语言   时间:2020-01-09 18:33:30    阅读次数:334
python中的defaultdict和orderdict
defaultdict(工厂函数) 如果访问的字典键不存在,就会初始化一个工厂函数的实例来代替 #统计列表单词出现次数 from collections import defaultdict strings = ['adad','dasdas','sadsa',"sdada",'dasdas'] c ...
分类:编程语言   时间:2020-01-08 14:18:27    阅读次数:109
html5远程控制
using HFCentraControl.Common; using HFCentraControl.Others; using SuperSocket.WebSocket; using System; using System.Collections.Generic; using System.... ...
分类:Web程序   时间:2020-01-07 16:05:50    阅读次数:255
盘古分词
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
分类:其他好文   时间:2020-01-07 10:36:07    阅读次数:88
盘古分词
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System. ...
分类:其他好文   时间:2020-01-07 10:28:59    阅读次数:65
WinForm导入导出
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
分类:Windows程序   时间:2020-01-07 10:22:05    阅读次数:87
Java自学-集合框架 Comparator和Comparable
Java Comparator和Comparable 步骤 1 : Comparator 假设Hero有三个属性 name,hp,damage 一个集合中放存放10个Hero,通过Collections.sort对这10个进行排序 那么到底是 hp小的放前面?还是damage小的放前面 ?Colle ...
分类:编程语言   时间:2020-01-06 21:07:52    阅读次数:76
python中的enumerate、map、filter和zip函数
引入 python内置了很多可以供我们直接调用的函数,这些函数的效率往往都非常高。我们在自己造轮子的同时,也非常有必要了解并且正确使用python给我们提供的大量的内置函数。在前面的博客里面我已经介绍了collections模块里面的几个比较常用的函数,这里再介绍几个。 1.enumerate en ...
分类:编程语言   时间:2020-01-05 19:16:22    阅读次数:82
Collections 工具类和 Arrays 工具类常见方法
Collections 工具类和 Arrays 工具类常见方法 Collections Collections 工具类常用方法: 排序 查找,替换操作 同步控制(不推荐,需要线程安全的集合类型时请考虑使用 JUC 包下的并发集合) 排序操作 void reverse(List list)//反转 v ...
分类:其他好文   时间:2020-01-05 11:34:36    阅读次数:102
9831条   上一页 1 ... 54 55 56 57 58 ... 984 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!