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
自己动手实现一个代码统计工具 导入所需的库 这个程序需要用到的库有:os,time这两个库都是 Python 自带的,所以我们直接 import 就行 1 import os 2 import time 现在我们已经导入要使用的库了,可以直接写代码了 定义要读取的文件地址 首先,我们定义一个路径吧, ...
分类:
其他好文 时间:
2020-01-09 18:29:46
阅读次数:
122
defaultdict(工厂函数) 如果访问的字典键不存在,就会初始化一个工厂函数的实例来代替 #统计列表单词出现次数 from collections import defaultdict strings = ['adad','dasdas','sadsa',"sdada",'dasdas'] c ...
分类:
编程语言 时间:
2020-01-08 14:18:27
阅读次数:
109
Retrofit 源码解析:一款基于 OkHttp 实现的网络请求框架
分类:
Web程序 时间:
2020-01-08 00:53:55
阅读次数:
78
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
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
简介 LinkedList是一个实现了List接口和Deque接口的双端链表。 LinkedList底层的链表结构使它支持高效的插入和删除操作,另外它实现了Deque接口,使得LinkedList类也具有队列的特性; LinkedList不是线程安全的,如果想使LinkedList变成线程安全的,可 ...
分类:
其他好文 时间:
2020-01-06 21:08:26
阅读次数:
96
Java Comparator和Comparable 步骤 1 : Comparator 假设Hero有三个属性 name,hp,damage 一个集合中放存放10个Hero,通过Collections.sort对这10个进行排序 那么到底是 hp小的放前面?还是damage小的放前面 ?Colle ...
分类:
编程语言 时间:
2020-01-06 21:07:52
阅读次数:
76