替换字符串

string  s =  "hello world!" ; ;
             s = s.Remove(2, 1);
             s = s.Insert(2,  "L" );

  索引从0开始


str.Split(':')[1].Trim().Replace(",", ",").Replace(":", ":").Replace("\"", "").Replace("\\", "").Trim().Replace("T", " ");

截取:后的数据 并且替换一些字符

猜你喜欢

转载自blog.csdn.net/weixin_42205554/article/details/80985844