string str = "20210101";
//索引从1开始,并非0
str = str.Insert(4,"年");
C# 字符串在指定位置插入字符
最新推荐文章于 2024-04-26 06:02:49 发布
string str = "20210101";
//索引从1开始,并非0
str = str.Insert(4,"年");