07 2020 档案

摘要:c#中包含着两个函数: Floor: 返回小于或等于指定值得最大整数 例如:Math.Floor(6.5) : 6 Ceiling: 返回大于或等于指定值得最小整数 例如:Math.Ceiling(6.5) : 7 阅读全文
posted @ 2020-07-18 11:20 涛神依旧 阅读(624) 评论(0) 推荐(0)
摘要:下面讲解如何在字符串当中抓取到数字 方法一、使用正则表达式 1、纯数字提取 string str = "提取123abc提取"; //我们抓取当前字符当中的123 string result = System.Text.RegularExpressions.Regex.Replace(str, @" 阅读全文
posted @ 2020-07-18 11:14 涛神依旧 阅读(3552) 评论(0) 推荐(0)