diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.json" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.json" new file mode 100644 index 0000000000000000000000000000000000000000..b6525bd810a0939e57b9dcac2fcc05781f87c662 --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.json" @@ -0,0 +1,5 @@ +{ + "type": "code_options", + "author": "kinfey", + "source": "HelloWorld.md" +} \ No newline at end of file diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.md" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.md" new file mode 100644 index 0000000000000000000000000000000000000000..10684981e818dc88f2521ed1f9a4803c69f938ea --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.md" @@ -0,0 +1,50 @@ +# Hello World + + +以下 `Hello World` 程序中,能够正确输出内容的是: + +## 控制台 + +### 运行 + +```bash + +dotnet new console --output sample1 +dotnet run --project sample1 + +``` + +## 答案 + +```csharp + +Console.WriteLine("Hello, World!"); + +``` + +## 选项 + +### A + +```csharp + +System.out.printf("Hello World"); + +``` + +### B + +```csharp + +println("Hello World"); + +``` + +### C + +```csharp + +Console.WriteLine("Hello, World!"); + +``` + diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/config.json" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..6095e1ab3d6e53110b8d0d2fb0a330e0ff80f7e1 --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/config.json" @@ -0,0 +1,14 @@ +{ + "node_id": "", + "keywords": [ + "控制台", + "dotnet new", + "程序入口" + ], + "children": [], + "export": [ + "HelloWorld.json" + ], + "title": "Hello World" + } + \ No newline at end of file diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/Program.cs" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/Program.cs" new file mode 100644 index 0000000000000000000000000000000000000000..83fa4f4d5fd1f545f64172b044a07814db23104f --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/Program.cs" @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/sample1.csproj" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/sample1.csproj" new file mode 100644 index 0000000000000000000000000000000000000000..40c60dd4c884340c455eab8a0020f7c681a4e76c --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/sample1.csproj" @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/Intro.json" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/Intro.json" new file mode 100644 index 0000000000000000000000000000000000000000..749fc86afb14e774a923fa47114c30476a4c6e7d --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/Intro.json" @@ -0,0 +1,5 @@ +{ + "type": "code_options", + "author": "kinfey", + "source": "Intro.md" +} \ No newline at end of file diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/Intro.md" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/Intro.md" new file mode 100644 index 0000000000000000000000000000000000000000..25d7215b22bf8a9c7da1c9ebb2e8bced93c7fd91 --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/Intro.md" @@ -0,0 +1,31 @@ +# .NET 简介 + + +以下关于 `.NET描述正确的是` 的说法正确的是: + + +## 答案 + +``` +所有选项均正确 +``` + +## 选项 + +### A + +``` +.NET 是一种用于构建多种应用的免费开源开发平台 +``` + +### B + +``` +.NET 是开放源代码,使用 MIT 和 Apache 2 许可证。 .NET 是 .NET Foundation 的项目。 +``` + +### C + +``` +Microsoft 支持在 Windows、macOS 和 Linux 上使用 .NET。 它会定期更新以保证安全和质量(每月的第二个星期二) +``` \ No newline at end of file diff --git "a/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/config.json" "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/config.json" new file mode 100644 index 0000000000000000000000000000000000000000..14c4bc14bd3e4df8221ab1bcb4e6f82fc2cc6179 --- /dev/null +++ "b/data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/2.\347\256\200\344\273\213/config.json" @@ -0,0 +1,11 @@ +{ + "node_id": "", + "keywords": [ + "dotnet", + ".NET", + "跨平台" + ], + "export": [ + "Intro.json" + ] +} \ No newline at end of file diff --git "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/config.json" "b/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/config.json" deleted file mode 100644 index 5a0b3a3afcb91b19dc1dbf10ed9e007150da0dd5..0000000000000000000000000000000000000000 --- "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/config.json" +++ /dev/null @@ -1,12 +0,0 @@ -{ - "node_id": "csharp-37f9119660e445a48b065052b38c7687", - "keywords": [ - "c#的起源", - "起源", - "c#" - ], - "children": [], - "export": [ - "helloworld.json" - ] -} \ No newline at end of file diff --git "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/helloworld.json" "b/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/helloworld.json" deleted file mode 100644 index 8bb392f99f3c9a42e20281f66781cffb45750e95..0000000000000000000000000000000000000000 --- "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/helloworld.json" +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "code_options", - "author": "幻灰龙", - "source": "helloworld.md", - "notebook_enable": true -} \ No newline at end of file diff --git "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/helloworld.md" "b/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/helloworld.md" deleted file mode 100644 index de9121787a221f40058f09c033c057860fe211ce..0000000000000000000000000000000000000000 --- "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/1.csharp\347\256\200\344\273\213/helloworld.md" +++ /dev/null @@ -1,55 +0,0 @@ -# Hello World - -编写一个输出 "Hello,World!" 的 C# 程序,以下错误的是? - -## 答案 - -```csharp -using System; -public class Program{ - public static void Main(){ - String str1 = "Hello,"; - String str2 = "World!"; - Console.WriteLine("str1"+"str2"); - } -} -``` - -## 选项 - -### 直接打印 - -```csharp -using System; -public class Program{ - public static void Main(){ - Console.WriteLine("Hello,World!"); - } -} -``` - -### 两个字符串拼接 - -```csharp -using System; -public class Program{ - public static void Main(){ - String str1 = "Hello,"; - String str2 = "World!"; - Console.WriteLine(str1+str2); - } -} -``` - -### 使用 var 关键字 - -```csharp -using System; -public class Program{ - public static void Main(){ - var str1 = "Hello,"; - var str2 = "World!"; - Console.WriteLine(str1+str2); - } -} -``` \ No newline at end of file diff --git "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\345\256\211\350\243\205.NET/config.json" "b/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\345\256\211\350\243\205.NET/config.json" deleted file mode 100644 index a66934ba770591cffdd99d5a25b04461925a443a..0000000000000000000000000000000000000000 --- "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/2.\345\256\211\350\243\205.NET/config.json" +++ /dev/null @@ -1,6 +0,0 @@ -{ - "node_id": "csharp-ab27adf6911e4530bd1716526c12781c", - "keywords": [], - "children": [], - "export": [] -} \ No newline at end of file diff --git "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/config.json" "b/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/config.json" deleted file mode 100644 index c765758c8b3b21b464075049fc817bf7dd0937b5..0000000000000000000000000000000000000000 --- "a/data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/config.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "node_id": "csharp-08a7251782494105ba037cc4f59ddf0c", - "keywords": [] -} \ No newline at end of file diff --git "a/data/1.csharp\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/config.json" "b/data/1.csharp\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/config.json" deleted file mode 100644 index 72666ed9d9ccfd4ca94a8f4137aaead83a25834d..0000000000000000000000000000000000000000 --- "a/data/1.csharp\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/config.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "node_id": "csharp-78ef60a83e3a45dca08ded3b6e9e806a", - "keywords": [] -} \ No newline at end of file diff --git "a/data/1.csharp\345\210\235\351\230\266/config.json" "b/data/1.csharp\345\210\235\351\230\266/config.json" deleted file mode 100644 index c620655a77c9c5f548f784ef10bf14807acaa436..0000000000000000000000000000000000000000 --- "a/data/1.csharp\345\210\235\351\230\266/config.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "node_id": "csharp-0d59ee87a1c24dec86cd6174eda22d8e", - "keywords": [] -} \ No newline at end of file diff --git "a/data/2.csharp\344\270\255\351\230\266/config.json" "b/data/2.csharp\344\270\255\351\230\266/config.json" deleted file mode 100644 index 799e0b9cd32aee99a554a47f53bec2e4a648bb74..0000000000000000000000000000000000000000 --- "a/data/2.csharp\344\270\255\351\230\266/config.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "node_id": "csharp-e5ec4e73aa7842fda7fc5e2a3523373e", - "keywords": [] -} \ No newline at end of file diff --git "a/data/3.csharp\351\253\230\351\230\266/config.json" "b/data/3.csharp\351\253\230\351\230\266/config.json" deleted file mode 100644 index 6465aeea8c52acec9f3844f45cf2ad64c2bf5796..0000000000000000000000000000000000000000 --- "a/data/3.csharp\351\253\230\351\230\266/config.json" +++ /dev/null @@ -1,4 +0,0 @@ -{ - "node_id": "csharp-7767ed91286e423fafc5c4637935199c", - "keywords": [] -} \ No newline at end of file diff --git a/data/config.json b/data/config.json deleted file mode 100644 index 66ee44e71d9c1965f53c0c5a07ef15b9e101beb3..0000000000000000000000000000000000000000 --- a/data/config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tree_name": "csharp", - "keywords": [], - "node_id": "csharp-0991d7a5f9a242e4983005d8ff53b086" -} \ No newline at end of file diff --git a/data/tree.json b/data/tree.json deleted file mode 100644 index 078f00c9f52e363aaa521025cd00fbabe16ddd5e..0000000000000000000000000000000000000000 --- a/data/tree.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "csharp": { - "node_id": "csharp-0991d7a5f9a242e4983005d8ff53b086", - "keywords": [], - "children": [ - { - "csharp初阶": { - "node_id": "csharp-0d59ee87a1c24dec86cd6174eda22d8e", - "keywords": [], - "children": [ - { - "预备知识": { - "node_id": "csharp-08a7251782494105ba037cc4f59ddf0c", - "keywords": [], - "children": [ - { - "简介": { - "node_id": "csharp-37f9119660e445a48b065052b38c7687", - "keywords": [], - "children": [] - } - }, - { - "安装": { - "node_id": "csharp-ab27adf6911e4530bd1716526c12781c", - "keywords": [], - "children": [] - } - } - ] - } - }, - { - "基础语法": { - "node_id": "csharp-78ef60a83e3a45dca08ded3b6e9e806a", - "keywords": [], - "children": [] - } - } - ] - } - }, - { - "csharp中阶": { - "node_id": "csharp-e5ec4e73aa7842fda7fc5e2a3523373e", - "keywords": [], - "children": [] - } - }, - { - "csharp高阶": { - "node_id": "csharp-7767ed91286e423fafc5c4637935199c", - "keywords": [], - "children": [] - } - } - ] - } -} \ No newline at end of file