CSharp-Learning/lessons/Lesson_One/Lesson01_HelloWorld.cs
Rosmontis_Cloud f604d53191 Initial commit: C# 学习笔记和示例代码
- Lesson 01-10: C# 基础语法
- WebView2: 集成示例
- notes/: 详细笔记
2026-07-01 16:31:35 +08:00

25 lines
564 B
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Lesson 01: Hello World
// 目标:熟悉 C# 基本结构和输出
using System;
namespace CSharpLearning
{
class Lesson01_HelloWorld
{
static void Main(string[] args)
{
// 打印 hello world
Console.WriteLine("Hello, World!");
Console.WriteLine("你好C#!");
// 打印带格式
string name = "无言势字幕";
Console.WriteLine($"项目名称: {name}");
// 等待输入(防止窗口关闭)
Console.ReadLine();
}
}
}