在C#中打印转义字符的方法
以下是C#中的转义字符,并且显示列建议如何在C#中使用和打印它们-
以下是显示如何在C#中使用某些转义符的示例-
例如
using System;
using System.Collections.Generic;
class Demo {
static void Main() {
Console.WriteLine("Warning!" + '\u0007');
Console.WriteLine("Demo Text \t Demo Text");
Console.WriteLine("This is it!\nThis is on the next line!");
}
}输出结果
Warning! Demo Text Demo Text This is it! This is on the next line!
热门推荐
1 初八祝福语简短语
10 送外卖祝福语大全简短
11 大雪生日祝福语大全简短
12 公司春节祝福语和简短
13 职场离职文案祝福语简短
14 圣诞饭店祝福语大全简短
15 新疆新年祝福语大全简短
16 六一祝福语简短感动女生
17 节日祝福语幽默简短的
18 女朋友考试祝福语简短