摘要: Regex regex = new Regex(@"[\u4e00-\u9fa5]"); // 定义正则表达式,匹配Unicode编码范围内的中文字符 string input = "fefe 年年年 商 eeeeee"; // string matches = regex.Replace(inpu 阅读全文
posted @ 2024-02-29 10:28 探索的动机 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #region 压缩和解压字符串 /// <summary> /// 将传入字符串以GZip算法压缩后,返回Base64编码字符 /// </summary> /// <param name="rawString">需要压缩的字符串</param> /// <returns>压缩后的Base64编码 阅读全文
posted @ 2024-02-19 10:58 探索的动机 阅读(59) 评论(0) 推荐(0) 编辑
摘要: string url = "http://localhost:5082/cookie/test2"; var cookies = new CookieContainer(); var handler = new HttpClientHandler() { CookieContainer = cook 阅读全文
posted @ 2023-12-21 16:07 探索的动机 阅读(59) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Linq; using System.Text.RegularExpressions; namespace YiSha.Util { pub 阅读全文
posted @ 2023-11-16 17:00 探索的动机 阅读(3) 评论(0) 推荐(0) 编辑
摘要: string[] ip = new string[] { }; ip = IP.Split(new char[] { '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '-', '=', '+', '/', '\\', ',', '?', 阅读全文
posted @ 2022-10-18 18:47 探索的动机 阅读(17) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 转换人民币大小金额 /// </summary> /// <param name="num">金额</param> /// <returns>返回大写形式</returns> public static string CmycurD(decimal num) { 阅读全文
posted @ 2022-10-18 18:35 探索的动机 阅读(25) 评论(0) 推荐(0) 编辑
摘要: RPC 全称Remote Procedure Call 即 远程调用 .NET Remoting : 是.NET 平台独有的,不支持跨平台。 GRPC: 是.NET Core 中的,高性能,开源和通用的grpc框架,面向服务端和移动端,基于HTTP/2设计 微服务架构1.0 时代: 服务的实例集群, 阅读全文
posted @ 2022-04-11 22:25 探索的动机 阅读(27) 评论(0) 推荐(0) 编辑
摘要: SELECT COLUMN_NAME 字段名称, COLUMN_TYPE 数据类型, COLUMN_KEY 索引, IS_NULLABLE 是否允许为空, COLUMN_DEFAULT 默认值, COLUMN_COMMENT 注释 FROM information_schema.`COLUMNS` 阅读全文
posted @ 2022-04-01 22:38 探索的动机 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 转: http://www.bootstrapmb.com/item/8803/preview 阅读全文
posted @ 2022-04-01 22:24 探索的动机 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 转: https://wujiawei0926.gitee.io/treeselect/docs/doc.html 阅读全文
posted @ 2022-04-01 22:21 探索的动机 阅读(50) 评论(0) 推荐(0) 编辑