C#怎么将一个转义字符\加入字符串中

如题所述

string a = "你好\\啊";
string b = @"你好\啊";

① @"你好\\啊" å­—符串前面加@符号 

② "你好\\啊" 用两个\\

两个办法 自己选一个

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答