using System; //导入命名空间
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lesson_one  //这里是项目的名称
{
    class Program    //claass 是用来声明Program是一个类 
    {
        static void Main()
        {
            string A = "你好 我叫张三";
            string B = "你好 我叫李四";
            Console.Write(A);
            Console.Write(B);//Write会将内容发送到窗口打印出来,所以打印出来在同一行
            Console.WriteLine("\r\n");//添加一个换行符
            Console.WriteLine(A);
            Console.WriteLine(B);//WriteLine同样将内容发送到控制窗口显示出来,但是会在内容后面加多一个换行符
            Console.ReadKey();
        }
       
        
    }
}

 

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-05
  • 2021-11-08
  • 2021-09-19
  • 2022-12-23
  • 2021-12-13
  • 2021-10-10
相关资源
相似解决方案