占位符的简单使用

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            int n1 = 10;
            int n2 = 20;
            int n3 = 30;

            Console.WriteLine("第一个数字是{0},第二个数字是{1},第三个数字是{2}" , n1, n2, n3);//注意这后边直接跟逗号
            Console.ReadKey();

        }
    }
}
原文地址:https://www.cnblogs.com/ssC2H4/p/8710084.html