c#中Console.WriteLine("y={0}",说具体点啊

来源:学生作业帮助网 编辑:六六作业网 时间:2024/05/14 11:37:22
c#中Console.WriteLine("y={0}",说具体点啊c#中Console.WriteLine("y={0}",说具体点啊c#中Console.WriteLine("y={0}",说具体

c#中Console.WriteLine("y={0}",说具体点啊
c#中Console.WriteLine("y={0}",说具体点啊

c#中Console.WriteLine("y={0}",说具体点啊
Console.WriteLine()意思就是输出括号内的字符串,"y={0}"就是要输出的字符串,而字符串中的{0}是一个占位符,意思就字符串后的第一个变量,这里既是y这个变量所代表的值,{1}就是字符串后的第二个变量...以此类推