摘要: class Program { static void Main(string[] args) { string str = Console.ReadLine(); str = str.Insert(1, "@@@"); Console.WriteLine("新字符串为:" + str); } } 阅读全文
posted @ 2019-12-23 13:40 highlightyys 阅读(675) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) { string str = Console.ReadLine(); int firstIndex = str.IndexOf("@"); int lastIndex = str.LastIndexOf( 阅读全文
posted @ 2019-12-23 13:38 highlightyys 阅读(67) 评论(0) 推荐(0)
摘要: class Program { static void Main(string[] args) { string str = Console.ReadLine(); if (str.IndexOf(",") != -1) { str = str.Replace(",", "_"); } Consol 阅读全文
posted @ 2019-12-23 10:12 highlightyys 阅读(81) 评论(0) 推荐(0)
摘要: 使用 IndexOf 方法查找第一个 @ 出现的位置与使用 LastlndexOf 方法查找 @ 在字符串中最后一次出现的位置相同即可 class Program { static void Main(string[] args) { string str = Console.ReadLine(); 阅读全文
posted @ 2019-12-23 10:09 highlightyys 阅读(37) 评论(0) 推荐(0)
摘要: HSSFWorkbook:是操作Excel2003以前(包括2003)的版本,扩展名是.xls XSSFWorkbook:是操作Excel2007的版本,扩展名是.xlsx 下述对象对excel2013等文件不适用,但基本的方法是一样的,可以借鉴 后续代码均是XSSFWorkbook对象 工作本HS 阅读全文
posted @ 2019-10-10 15:44 highlightyys 阅读(290) 评论(0) 推荐(0)
摘要: protected void Page_Load(object sender, EventArgs e) { //1.读取excel数据,存入list中 List<User> list = new List<User>(); //读取文件 using (FileStream stream = new 阅读全文
posted @ 2019-10-08 13:33 highlightyys 阅读(34) 评论(0) 推荐(0)
摘要: using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.U 阅读全文
posted @ 2019-09-27 17:59 highlightyys 阅读(19) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/William-1234/p/4533905.html 一,IIS 1.首先知道IIS是个什么东西:它是web服务器软件,安装在服务器上,接受客户端发来的请求,并传送给服务器端,然后响应请求并送回给客户端。类似于饭店里的服务员。 2.会安装IIS——控 阅读全文
posted @ 2019-09-27 17:49 highlightyys 阅读(30) 评论(0) 推荐(0)
摘要: 参考: https://www.cnblogs.com/wolfocme110/p/3881039.html https://blog.csdn.net/qq_41953178/article/details/94615692 <Window x:Class="WpfApp3.MainWindow" 阅读全文
posted @ 2019-09-27 09:34 highlightyys 阅读(34) 评论(0) 推荐(0)
摘要: 转载:来源https://www.cnblogs.com/24la/p/tsql-n.html 比如 select @status = N'stopped' 那么其中的字符串 stopped 前面为什么要加 N 呢?而且我们发现有些地方加 N 与否都没有影响,有些地方又必须加 N。 N 在这里表示 阅读全文
posted @ 2019-09-26 09:28 highlightyys 阅读(36) 评论(0) 推荐(0)