开源地址 CoreFX is the foundational class libraries for .NET Core. It includes types for collections, file systems, console, JSON, XML, async and many oth ...
分类:
Web程序 时间:
2020-06-25 10:11:21
阅读次数:
240
1、nuget 引用 Select.HtmlToPdf 2、方法 using SelectPdf; using System.Collections.Specialized; using System.IO; using System.Web; namespace BQoolCommon.Helpe ...
分类:
Web程序 时间:
2020-06-24 15:55:57
阅读次数:
109
#!/usr/bin/python3 # _*_ Coding: UTF-8 _*_ from __future__ import division import collections import copy import math import operator import pickle im ...
分类:
编程语言 时间:
2020-06-24 15:49:28
阅读次数:
41
Collections工具类1.作用:操作Collection和Map的工具类 2.常用方法:reverse(List):反转 List 中元素的顺序shuffle(List):对 List 集合元素进行随机排序sort(List):根据元素的自然顺序对指定 List 集合元素升序排序sort(Li ...
分类:
编程语言 时间:
2020-06-23 21:01:02
阅读次数:
55
最近做的项目,有个需求(从Elastic Search取数据,业务运算后),每次要向MySQL插入1300万数据左右。最初用MySQL的executemany()一次插入10000条数据,统计的时间如下: 如上,插入时间,由于系统的IO变化,会有波动,最快在4秒左右。 后改为"load data i ...
分类:
数据库 时间:
2020-06-22 21:00:39
阅读次数:
71
package coreJava.com.shindo.corejava.map; import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.HashMap ...
分类:
编程语言 时间:
2020-06-22 17:21:43
阅读次数:
81
/*下列程序的功能:创建一个链表并实现数据统计。函数WORD *create(char *a[][20],int n) 创建一个包含n个结点的单向链表,结点数据来自a所指向的数组中存储的n个单词(字符串)。 函数void count(WORD *h)统计h指向的单向链表中不同单词各自出现的次数,将统 ...
分类:
编程语言 时间:
2020-06-22 10:54:47
阅读次数:
59
地址 https://www.acwing.com/solution/content/15094/ 给出一个长度为 n 的由正整数构成的序列,你需要从中删除一个正整数,很显然你有很多种删除方式,你需要对删除这个正整数以后的序列求其最长上升子串,请问在所有删除方案中,最长的上升子串长度是多少。 这里给 ...
"""可迭代:可循环--一个实现了next方法的对象则是迭代器 一类是集合数据类型,如list/tuple/dict/set/str 一类是generator,包括生成器和带yield的generator function""" from collections import Iterable is ...
分类:
其他好文 时间:
2020-06-21 00:00:06
阅读次数:
64
Form1.CS using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syst ...