当前位置:网站首页>2021-06-29 C escape character cancellation and use

2021-06-29 C escape character cancellation and use

2022-04-23 20:34:00 One Mr rabbit one

C# String reserves escape characters :

string str = @"test String \n \t \";

Use @ Symbol , Escape character not executed

C# String use escape :

Json In transit "“ Characters are often converted to ”\" Use , Usage after parsing :

string str = @"test String \n \t \";
string s = Regex.Unescape(str);

Lua String reserves escape characters :

local str = [[test String \n \t \]]

版权声明
本文为[One Mr rabbit one]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210548406314.html