@字符作用:
1、不识别字符串中的转义字符(如 )。字符串可以换行行。
2、简化路径
public static void Main(string[] args) { string str1 = "I'm a good "man". You are bad girl!"; string str2 = @"I'm a good ""man"". You are bad girl!"; string str3 = "c:\Windows\bin"; string str4 = @"c:Windowsin"; Console.WriteLine(str1); Console.WriteLine(str2); Console.WriteLine(str3); Console.WriteLine(str4); Console.ReadKey(); }