String s = "abcdefg"; System.Console.WriteLine(s); s = s.Replace('c', 't'); System.Console.WriteLine(s);
//1 pasword = MyDate.Format("u",null); //2 pasword = pasword.Replace("-","j"); 但第二行出错,CS1502: The best overloaded method match for 'string.Replace(char, char)' has some invalid arguments
System.Console.WriteLine(s);
s = s.Replace('c', 't');
System.Console.WriteLine(s);
//2 pasword = pasword.Replace("-","j");
但第二行出错,CS1502: The best overloaded method match for 'string.Replace(char, char)' has some invalid arguments
是用 ‘’,而不是 “”
起进步