C# 实现Excel(导出导入)非常实用的将数字转换成字母 /// <summary> /// 需要转换的行或者列 /// </summary> /// <param name="index"></param> /// <returns></returns> private static strin ...
分类:
其他好文 时间:
2018-11-02 20:26:12
阅读次数:
140
如果给定N个不同字符,将这N个字符全排列,最终的结果将会是N!种。如:给定 A、B、C三个不同的字符,则结果为:ABC、ACB、BAC、BCA、CAB、CBA一共3!=3*2=6种情况。 public class Test6 { //设置总数 private static int count =0; ...
分类:
其他好文 时间:
2018-11-02 02:05:30
阅读次数:
190
public class PropertiesUtil{ private static Properties properties; static{ InputStream in = null; try{ in = PropertiesUtil.class.getClassLoader().getR ...
分类:
其他好文 时间:
2018-11-01 11:32:24
阅读次数:
256
private static string ConnStr = @"Data Source = (DESCRIPTION = (ADDRESS_LIST=(ADDRESS= (PROTOCOL = TCP)(HOST =139.199.100.66)(PORT = 1521)))(CONNECT_D ...
分类:
数据库 时间:
2018-10-30 22:22:08
阅读次数:
450
class Program9 { //检索线程对象 //停止所有前台线程后,运行时将停止所有后台线程,并关闭。 static Object obj = new Object(); private static void ShowThreadInformation(Object state) ... ...
分类:
编程语言 时间:
2018-10-28 14:08:18
阅读次数:
169
class Program11 { private static void ExecuteInForeground() { DateTime start = DateTime.Now; var sw = Stopwatch.StartNew(); Console.WriteLine("... ...
分类:
编程语言 时间:
2018-10-28 14:07:38
阅读次数:
126
class MtwGame { public constructor() { } private static _instance: MtwGame; public static get Instance(): MtwGame { if (this._instance == null || this ...
分类:
其他好文 时间:
2018-10-27 11:51:06
阅读次数:
1738
方式1 Thread继承 package com.example.demo; /** * @Date:2:55 PM 2018/10/24 */ public class ThreadDemo extends Thread { private static int ticket = 100000; ...
分类:
编程语言 时间:
2018-10-24 17:46:12
阅读次数:
195
原文:dotnet检测类型是否为泛型 private static string GetTableName(Type type) { //检测类型是否为泛型 if (type.GetType().IsGenericType) {//取出泛型类型 var types = type.GetG... ...
分类:
Web程序 时间:
2018-10-23 23:16:43
阅读次数:
310
用Jsoup在获取一些网站的数据时,起初获取很顺利,但是在访问某浪的数据是Jsoup报错,应该是请求头里面的请求类型(ContextType)不符合要求。 请求代码如下: private static void testOuGuanMatch() throws IOException{ Docume ...
分类:
移动开发 时间:
2018-10-23 18:01:38
阅读次数:
191