mma*_*tax 17
为什么不:
string s = "foobar\ngork";
string v = s.Replace(Environment.NewLine,",");
System.Console.WriteLine(v);
Run Code Online (Sandbox Code Playgroud)
小智 7
像这样:
string s = "hello\nworld";
s = s.Replace(Environment.NewLine, ",");
Run Code Online (Sandbox Code Playgroud)