摘要: 用法 string a = "\00\004\06\00\00\09\u0001\05\08\0\0\0\0\0\0\u0006"; string s = Regex.Replace(a, @"[^(\x21-\x7E)]", ""); Console.WriteLine(s); Console.R 阅读全文
posted @ 2025-01-22 09:29 冰糖小袁子 阅读(25) 评论(0) 推荐(0) 编辑
摘要: private void Form1_Load(object sender, EventArgs e) { System.Threading.Thread thread = new System.Threading.Thread(CrossThreadFlush); thread.IsBackgro 阅读全文
posted @ 2023-10-15 11:44 冰糖小袁子 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 新建一个名为log4net.config的文件,然后把下面一段粘贴进去 <?xml version="1.0" encoding="utf-8" ?> <configuration> <log4net> <!-- OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL - 阅读全文
posted @ 2023-08-24 22:21 冰糖小袁子 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 转载于B站——本宫万年菜鸟 ``` private void SaveImage(string path, CogImage8Grey image) { path = AppDomain.CurrentDomain.BaseDirectory + "Images\\" + DateTime.Now. 阅读全文
posted @ 2023-01-10 10:40 冰糖小袁子 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 转载并整理于https://ask.csdn.net/questions/7488035 /// <summary> /// 删除指定天数前的所有文件夹 /// </summary> /// <param name="path">路径</param> /// <param name="time">天 阅读全文
posted @ 2023-01-10 10:18 冰糖小袁子 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 也是转载的,不知道哪个是原作者,原作者若看到请联系本人注明 using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System.Text 阅读全文
posted @ 2022-11-21 15:21 冰糖小袁子 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 当前时间 static void Main(string[] args) //主程序 { //输出2022/11/21 Console.WriteLine(DateTime.Now.ToString("d")); //输出2022年11月21日 Console.WriteLine(DateTime. 阅读全文
posted @ 2022-11-21 15:14 冰糖小袁子 阅读(43) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization.Formatters.Binary; using Syst 阅读全文
posted @ 2022-08-23 19:03 冰糖小袁子 阅读(29) 评论(0) 推荐(0) 编辑
摘要: //第一种方法,先获取字体,再设置 public void Disp_Text(HWindowControl win, int Row, int Column, string color, string text) { try { HTuple hv_FontWithSize = null; //设 阅读全文
posted @ 2022-05-11 16:34 冰糖小袁子 阅读(2309) 评论(0) 推荐(1) 编辑
摘要: read_image (Image1381Bcb4442e5fb68e9, 'F:/yuan/Image/13_81_bcb4442e5fb68e9.bmp') OCR 01: Code generated by OCR 01 OCR 01: OCR 01: Prepare text model O 阅读全文
posted @ 2022-03-19 19:45 冰糖小袁子 阅读(570) 评论(0) 推荐(1) 编辑
点击右上角即可分享
微信分享提示