///如何处理转义字符
namespace CSharp开发经验技巧宝典
{
class _042
{
//static void Main(String[] args)
//{
// //在这里/'就相当于/u0027
// string str = "hywork/"angle";
// string hy = "hywork/u0022angle";
// Console.WriteLine("str = " + str);
// Console.WriteLine("hy = " + hy);
// /*
// * 常见的转义序列列表如下
// * 转义序列 产生的字符 字符的Unicode值
// * /' 单引号 0x0027
// * /" 双引号 0x0022
// * // 反斜杠 0x005C
// * /0 空 0x0000
// * /r 回车 0x000D
// */
//}
}
}
如何处理转义字符
最新推荐文章于 2022-07-28 21:47:13 发布