c#之占位符

来源:互联网 发布:googlenet网络结构 编辑:程序博客网 时间:2024/05/22 15:33

这里写图片描述

示例代码:

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 占位符{    class Program    {        static void Main(string[] args)        {            int n1 = 10;            int n2 = 20;            int n3 = 30;            Console.WriteLine("第一个数字是:{0},第二个数字是:{1},第三个数字是:{2}\n", n1, n2, n3);            Console.WriteLine("第一个数字是:{0},第二个数字是:{2},第三个数字是:{1}\n", n1, n2, n3);            Console.ReadKey();        }    }}
0 0
原创粉丝点击