码迷,mamicode.com
首页 > Windows程序 > 详细

C#字母替换

时间:2020-03-26 01:28:13      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:replace   font   def   style   abc   bsp   nbsp   bcd   lin   

2020-03-26  每日一例第15天

 

string str = "abcdefg";
string str1 = str.Replace("a","0");
Console.WriteLine(str1);
Console.ReadKey();

C#字母替换

标签:replace   font   def   style   abc   bsp   nbsp   bcd   lin   

原文地址:https://www.cnblogs.com/ljs7490/p/12571727.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!