string s = "www.nihao.com";//string 是System.String的别名
int res = s.CompareTo("saki");//当两个字符串相等的时候,返回0 当s在字母表中的排序靠前的时候,返回-1, 否则返回1
Console.Write(res);
string newStr = s.Replace('.', '-');
string newStr = s.Replace(".", "----");//把指定的字符换成指定的字符 或者把指定的字符串换成指定的字符串
Console.WriteLine(s);
Console.WriteLine(newStr);
11-08
314
