《21天学通C#》Write和WriteLine的区别
2021-07-02 16:42
标签:开始 static void img write sys info col str using System; namespace WriteLine和Write的区别 System.Console.Write("First Write Line");//First Write Line后面不开始新的一行,直接紧跟着输出Second Write Line //passing parameters 《21天学通C#》Write和WriteLine的区别 标签:开始 static void img write sys info col str 原文地址:https://www.cnblogs.com/nnty/p/9909308.html
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
{
class Program
{
static void Main(string[] args)
{
//WriteLine输出后鼠标显示在下一行开头
//Write输出后不开始一个新行
System.Console.WriteLine("First WriteLine Line");
System.Console.WriteLine("Second WriteLine Line");
System.Console.Write("Second Write Line");
System.Console.WriteLine("\nWriteLine:Parameter={0}", 123);
System.Console.Write("Write:Parameter={0}", 456);
System.Console.ReadKey();
}
}
}
文章标题:《21天学通C#》Write和WriteLine的区别
文章链接:http://soscw.com/index.php/essay/100871.html