Skip to content

Localised for Simplified Chinese #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
24 changes: 13 additions & 11 deletions FirstSteps_ZH-CN/00-目录.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,23 @@
"\n",
"| 课程 |\n",
"|-----|\n",
"| [目录 ]( 00-目录.ipynb ) |\n",
"| [目录 ]( 00-目录.ipynb ) |\n",
"| [变量的使用 ]( 01-变量的使用.ipynb ) |\n",
"| [什么是字符串 ]( 02-什么是字符串.ipynb ) |\n",
"| [XSharp 中的字符串 ]( 02b-XSharp%20中的字符串.ipynb ) |\n",
"| [Integers(整数 - 1) ]( 03-Integers(整数%20-%201).ipynb ) |\n",
"| [Integers(整数 - 2) ]( 04-Integers(整数%20-%202).ipynb ) |\n",
"| [Decimals(小数) ]( 05-Decimals(小数).ipynb ) |\n",
"| [条件语句 ]( 06-条件语句.ipynb ) |\n",
"| [循环语句 ]( 07-循环语句.ipynb ) |\n",
"| [循环和分支 ]( 08-循环和分支.ipynb ) |\n",
"| [数组(Array)、列表(Lists)和集合(Collections) ]( 09-数组(Arrays)、列表(Lists)%20和集合(Collections).ipynb ) |\n",
"| [Integers(整数 - 1) ]( 03-Integers(整数%20-%201).ipynb ) |\n",
"| [Integers(整数 - 2) ]( 04-Integers(整数%20-%202).ipynb ) |\n",
"| [Decimals(小数) ]( 05-Decimals(小数).ipynb ) |\n",
"| [条件语句 ]( 06-条件语句.ipynb ) |\n",
"| [循环语句 ]( 07-循环语句.ipynb ) |\n",
"| [循环和分支 ]( 08-循环和分支.ipynb ) |\n",
"| [数组(Array)、列表(Lists)和集合(Collections) ]( 09-数组(Arrays)、列表(Lists)%20和集合(Collections).ipynb) |\n",
"| [搜索、排序和管理列表(Lists) ]( 10-搜索、排序和管理列表(Lists).ipynb ) |\n",
"| [练习使用列表(Lists) ]( 11-练习使用列表(Lists).ipynb ) |\n",
"| [函数和过程 ]( 12-函数和过程.ipynb ) |\n",
"| [对象和类 ]( 13-对象和类.ipynb ) |\n",
"| [练习使用列表(Lists) ]( 11-练习使用列表(Lists).ipynb ) |\n",
"| [函数和过程 ]( 12-函数和过程.ipynb ) |\n",
"| [对象和类 ]( 13-对象和类.ipynb ) |\n",
"| [方法和成员 ]( 14-方法和成员.ipynb)|\n",
"| [方法和异常 ]( 15-方法和异常.ipynb)|\n",
"\n",
"\n",
" \n"
Expand Down
22 changes: 20 additions & 2 deletions FirstSteps_ZH-CN/01-变量的使用.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -18,7 +18,25 @@
"kernelName": "csharp"
}
},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div><div><strong>Restore sources</strong><ul><li><span>C:\\XSharpInteractive\\</span></li></ul></div><div></div><div></div></div>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"ename": "Error",
"evalue": "C:\\Users\\Lenovo\\.packagemanagement\\nuget\\Projects\\27672--7ae3e934-3130-42cb-945e-03efd70eeec3\\Project.fsproj : error NU1301: The local source 'D:\\Program' doesn't exist.",
"output_type": "error",
"traceback": [
"C:\\Users\\Lenovo\\.packagemanagement\\nuget\\Projects\\27672--7ae3e934-3130-42cb-945e-03efd70eeec3\\Project.fsproj : error NU1301: The local source 'D:\\Program' doesn't exist."
]
}
],
"source": [
"// <-= 按左侧箭头运行\n",
"#r \"nuget:XSharpInteractive\""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"\n",
"**XSharp** 中其他方言也支持不同类型的数组和列表。 \n",
"\n",
"它从 xBase 继承了一种特殊类型,称为 `USUAL`;它是在面向对象编程之前的类型,所以在 `OBJECT` 类型之前。有了它,你可以创建动态数组,其行为有点像 ArrayList,但用于操作它的函数/方法是不同的。 \n",
"它从 xBase 继承了一种特殊类型,称为 `USUAL`;它是在面向对象编程之前的类型,所以在 `OBJECT` 类型之前。有了它,你可以创建动态数组,其行为有点像 `ArrayList`,但用于操作它的函数/方法是不同的。 \n",
"\n",
"很不幸,我们暂时无法向你展示这些,因为 **XSharpInteractive** 引擎现仅支持 **Core 方言**,而它不支持 `USUAL` 类型。\n",
"___"
Expand Down
5 changes: 3 additions & 2 deletions FirstSteps_ZH-CN/13-对象和类.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
"\n",
"- **对象**: 对象是类的实例。它们拥有实际数据值以及执行类定义的操作的能力。他们*存在*于内存。\n",
"- **方法**: 方法是在类中定义的函数或操作。它们定义了对象的行为。它们可以执行各种操作、处理数据并与其他对象交互。它们通常用动词来标识。\n",
"- **属性**: 属性也称为属性或字段,是类的数据成员。它们存储与对象相关的特征或数据。它们通常用名词来标识。"
"- **属性**: 属性也称为属性或字段,是类的数据成员。它们存储与对象相关的特征或数据。它们通常用名词来标识。 \n",
"在 X# 中,\"字段\" 和 \"属性\"并不完全相同,但暂且不论(我们将在 [方法和成员](./14-方法和成员.ipynb) 中予以讨论其区别)。"
]
},
{
Expand Down Expand Up @@ -81,7 +82,7 @@
"\n",
"***get*** 可以让你看到变量,***set*** 可以让你更改变量。(对吗?)\n",
"\n",
"> 在 //Properties 下的 BankAccount 对象中键入以下代码\n",
"> 在 //属性 下的 BankAccount 对象中键入以下代码\n",
"\n",
" PUBLIC PROPERTY Number AS STRING AUTO GET SET\n",
" PUBLIC PROPERTY Owner AS STRING AUTO GET SET\n",
Expand Down
Loading