From 155ebd0c78c96037b5fbafc02f62f9ba25fd6855 Mon Sep 17 00:00:00 2001 From: feilong Date: Tue, 14 Dec 2021 22:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1.Hello World/HelloWorld.json" | 5 ++ .../1.Hello World/HelloWorld.md" | 50 ++++++++++++++++ .../1.Hello World/config.json" | 14 +++++ .../1.Hello World/sample1/Program.cs" | 2 + .../1.Hello World/sample1/sample1.csproj" | 10 ++++ .../2.\347\256\200\344\273\213/Intro.json" | 5 ++ .../2.\347\256\200\344\273\213/Intro.md" | 31 ++++++++++ .../2.\347\256\200\344\273\213/config.json" | 11 ++++ .../config.json" | 12 ---- .../helloworld.json" | 6 -- .../helloworld.md" | 55 ----------------- .../config.json" | 6 -- .../config.json" | 4 -- .../config.json" | 4 -- .../config.json" | 4 -- .../config.json" | 4 -- .../config.json" | 4 -- data/config.json | 5 -- data/tree.json | 59 ------------------- 19 files changed, 128 insertions(+), 163 deletions(-) create mode 100644 "data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.json" create mode 100644 "data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/HelloWorld.md" create mode 100644 "data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/config.json" create mode 100644 "data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/Program.cs" create mode 100644 "data/1..NET\345\210\235\351\230\266/1.\345\205\245\351\227\250/1.Hello World/sample1/sample1.csproj" create mode 100644 "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" create mode 100644 "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" create mode 100644 "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" delete mode 100644 "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" delete mode 100644 "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" delete mode 100644 "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" delete mode 100644 "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" delete mode 100644 "data/1.csharp\345\210\235\351\230\266/1.\351\242\204\345\244\207\347\237\245\350\257\206/config.json" delete mode 100644 "data/1.csharp\345\210\235\351\230\266/2.\345\237\272\347\241\200\350\257\255\346\263\225/config.json" delete mode 100644 "data/1.csharp\345\210\235\351\230\266/config.json" delete mode 100644 "data/2.csharp\344\270\255\351\230\266/config.json" delete mode 100644 "data/3.csharp\351\253\230\351\230\266/config.json" delete mode 100644 data/config.json delete mode 100644 data/tree.json 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 0000000..b6525bd --- /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 0000000..1068498 --- /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 0000000..6095e1a --- /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 0000000..83fa4f4 --- /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 0000000..40c60dd --- /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 0000000..749fc86 --- /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 0000000..25d7215 --- /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 0000000..14c4bc1 --- /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 5a0b3a3..0000000 --- "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 8bb392f..0000000 --- "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 de91217..0000000 --- "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 a66934b..0000000 --- "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 c765758..0000000 --- "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 72666ed..0000000 --- "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 c620655..0000000 --- "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 799e0b9..0000000 --- "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 6465aee..0000000 --- "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 66ee44e..0000000 --- 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 078f00c..0000000 --- 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 -- GitLab