转义字符是具有特殊功能的字符,如
\n 表示换行
\" 表示引号
\\ 表示一个\
\b 表示退格
\r 表示回车
\t 表示水平制表符
\v 表示垂直制表符
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _004
{
class Program
{
static void Main(string[] args)
{
string name = "siki";
int hp = 100;
int level = 34;
float exp = 345.3f;
long l = 100000000000000L;
Console.WriteLine("主角的名字是:\t\\\"{0}\"\n血量:{1}\n等级:{2}\n经验值:{3}", name, hp, level, exp);
Console.ReadKey();
}
}
}