![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
Simon(景辰)
这个作者很懒,什么都没留下…
展开
-
C# 如何提取邮箱的账号和域名
string emile= "123456789@163.com"; int index = emile.IndexOf('@'); string username = emile.Substring(0,index); string yumin = emile.Substring(index + 1); Console.WriteLine(username); Console.WriteLi...原创 2021-06-02 10:53:17 · 1144 阅读 · 0 评论 -
C# 怎么把文本用**替换
eg: string str = “关键人物老板”;Console.WriteLine(str);if (str.Contains (“老板”)){str=str.Replace(“老板”,"**"); } Console.WriteLine(str); Console.ReadKey();str.Replace原创 2021-05-19 08:47:36 · 439 阅读 · 0 评论