摘要: Substring方法是C#中最常用的字符串截取方法之一。它通过指定起始位置和长度来截取字符串的一部分 string originalString = "Hello, World!"; string subString = originalString.Substring(7, 5); Consol 阅读全文
posted @ 2024-04-02 07:18 魏三斗 阅读(74) 评论(0) 推荐(0) 编辑
摘要: GROUP_CONCAT :用于将指定组的多行中的非NULL值连接为一个值。此函数在提供逗号分隔列表的报告中特别有用。 1 GROUP_CONCAT(DISTINCT expression 2 [ORDER BY expression [ASC|DESC]] 3 [SEPARATOR str_val 阅读全文
posted @ 2024-03-29 07:25 魏三斗 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Stopwatch:提供一组方法和属性,可以准确的测量运行时间。使用的时候需要引用命名空间:System.Diagnostics。 1 //创建Stopwatch实例 2 Stopwatch sw = new Stopwatch(); 3 //开始计时 4 sw.Start(); 5 for (in 阅读全文
posted @ 2024-03-28 13:55 魏三斗 阅读(27) 评论(0) 推荐(0) 编辑
摘要: peek是用来确定你read的文件是否结束了,如果结束了会返回int型 -1 , 阅读全文
posted @ 2024-03-28 13:24 魏三斗 阅读(6) 评论(0) 推荐(0) 编辑
摘要: Pycharm 打开Terminal后终端闪退的原因是终端路径不对 在Settings中找到Tools-->终端(Terminal)-->修改Shell Path 阅读全文
posted @ 2024-01-19 11:40 魏三斗 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 查看Python安装目录的两种方式: 1. 在cmd中使用py-0p 显示安装的Python 版本和安装路径: 2. 在cmd中执行where Python 阅读全文
posted @ 2023-11-13 09:26 魏三斗 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 如何使用PowerShell压缩文件 它使用您要压缩的任何文件的路径(多个文件用逗号分隔),并将它们存档在您指定的目标位置。 Compress-Archive -LiteralPath <PathToFiles> -DestinationPath <PathToDestination> https: 阅读全文
posted @ 2022-12-13 17:49 魏三斗 阅读(147) 评论(0) 推荐(0) 编辑
摘要: -and(逻辑与) -or(逻辑或) -xor(逻辑XOR) -not(逻辑非) ! (与逻辑非相同) 阅读全文
posted @ 2022-12-08 10:24 魏三斗 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 字符串包含的三种方法 Console.WriteLine("请输入第一个字符串"); string str1 = Console.ReadLine(); Console.WriteLine("请输入第二个这了符串"); string str2 = Console.ReadLine(); 第一种Con 阅读全文
posted @ 2022-12-08 10:23 魏三斗 阅读(708) 评论(0) 推荐(0) 编辑
摘要: An exception occurred while executing a Transact-SQL statement or batch. The CHECK_POLICY and CHECK_EXPIRATION options cannot be turned OFF when MUST_ 阅读全文
posted @ 2022-12-05 11:30 魏三斗 阅读(484) 评论(0) 推荐(0) 编辑