摘要: C#写计时器: System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch(); watch.Start();//开始计时 int count=0; for (int i = 0; i < 10000; i++) { c 阅读全文
posted @ 2020-12-17 08:57 五点 阅读(868) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Web;using System.Linq;using System.Configuration;using System.Collections.Generic;using Newtonsoft.Json;using System.IO;usin 阅读全文
posted @ 2019-05-20 16:01 五点 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 1.引用: using System.Security.Cryptography;using System.Text; 2.代码 static string encryptKey = "abcd";//字符串加密密钥(注意:密钥只能是4位) public string Encrypt(string 阅读全文
posted @ 2019-05-20 13:49 五点 阅读(6182) 评论(0) 推荐(0) 编辑
摘要: 1.win+R输入cmd 2.cd C:\PostgreSQL\10\bin 3.还原之前首先在postgresql中新建数据库,作为目标数据库 4.在postgresql对目标数据库执行create extension postgis;语句,确保空间数据加载正常,同时生成表spatial_ref_ 阅读全文
posted @ 2019-03-09 15:36 五点 阅读(2338) 评论(0) 推荐(0) 编辑
摘要: 错误详情: Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the follow 阅读全文
posted @ 2019-03-09 14:43 五点 阅读(944) 评论(0) 推荐(0) 编辑
摘要: 1.引用:using System.IO; 2.代码: class Program { static void Main(string[] args) { string filePath1 = "F:\\测试文件\\11.txt"; string filePath2 = "F:\\测试文件\\22. 阅读全文
posted @ 2019-03-07 13:55 五点 阅读(3389) 评论(0) 推荐(0) 编辑
摘要: 1.添加引用 Newtonsoft.dll 2.引用 using Newtonsoft.Json;using Newtonsoft.Json.Linq; 3.配json字典 public string ReturnDic() { string Arr = "{" + "\"aa\":\"11\"" 阅读全文
posted @ 2019-03-02 15:41 五点 阅读(915) 评论(0) 推荐(0) 编辑
摘要: 1.添加引用 NPOI.dll NPOI.OOXML.dll 2.引用 using NPOI.SS.UserModel;using NPOI.XSSF.UserModel;using NPOI.SS.Util; 3.新加一个excel空表格作为模板。例如:templete.xlsx 4.代码实现 自 阅读全文
posted @ 2019-03-02 15:35 五点 阅读(2196) 评论(0) 推荐(0) 编辑
摘要: 1.添加引用 NPOI.dll NPOI.OOXML.dll 2.引用 using NPOI.SS.UserModel;using NPOI.XSSF.UserModel;using NPOI.SS.Util; 3.新建一个excel模板放到项目中。例如:templete.xlsx 4.实现方式 自 阅读全文
posted @ 2019-03-02 15:18 五点 阅读(917) 评论(0) 推荐(0) 编辑
摘要: 1.打开mysql输入密码 2. mysql>use mysql; mysql>update user set host = ’%’ where user = ’root’; mysql>select host, user from user; 3.重启iis 阅读全文
posted @ 2019-03-02 15:06 五点 阅读(2311) 评论(0) 推荐(0) 编辑