考虑:
string newline = "\r\n";
Console.WriteLine($"Hello without at{newline}how are you?");
Console.WriteLine($"Hello with at{@newline}how are you?");
两行的输出是相同的。换行符始终打印为换行符。
Hello without at
how are you?
Hello with at
how are you?
那么我什么时候需要花括号内的at 符号呢?
FFIVE
哈士奇WWW
相关分类