如果一个字符串有双引号,
string str = "it is a "text""
Run Code Online (Sandbox Code Playgroud)
我该怎么知道字符串是否有".
如何删除双引号?
string str = "it is a \"text\"";
string str_without_quotes = str.Replace("\"", "");
Run Code Online (Sandbox Code Playgroud)
不要费心检查它是否包含引号,只需替换它们.