比如我想得到字符串 this is a "cc";
我用"this is a " + '"' +"cc" +'"';
却得到 this is a "\cc\";
请问如何解决。就是说在字符串后面连接",如何连接。
onlie(夕雨晨风) 说
呵呵!用转义字符呀!
"this is a"+ \"+"c"+\"
怎么编译不过,求助呀。
...全文
1876打赏收藏
(新)如何在字符串中添加双引号 "
比如我想得到字符串 this is a "cc"; 我用"this is a " + '"' +"cc" +'"'; 却得到 this is a "\cc\"; 请问如何解决。就是说在字符串后面连接",如何连接。 onlie(夕雨晨风) 说 呵呵!用转义字符呀! "this is a"+ \"+"c"+\" 怎么编译不过,求助呀。