File tree Expand file tree Collapse file tree 3 files changed +121
-0
lines changed Expand file tree Collapse file tree 3 files changed +121
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : Python简介
3
+ language : zh
4
+ ...
5
+
6
+ Python是一个广泛使用的,基于文本的通用编程语言。
7
+
8
+ # ## 使用Trinket
9
+
10
+ 当编译我们的HTML & CSS 工程时,我们推荐使用 [Trinket](https://trinket.io/) 在线构建网页。 除了可以离线写代码外Trinket还有如下优势:
11
+
12
+ + 孩子们可以实时预览HTML 和 CSS代码的效果;
13
+ + 孩子们可以在线保存他们的代码,无论是在俱乐部还是在家,他们都能访问他们的网页;
14
+ + 孩子们可以分享他们的网页给他人,同时可以改进别人分享给他们的网页。
15
+
16
+ 第一个Python项目 (名叫 [About Me](http://jumpto.cc/about-me)) 详细介绍了如何创建、保存和浏览一个简单的网页。
17
+
18
+ # ## 离线使用
19
+
20
+ 当离线使用时,我们推荐下载安装Python 3.2,你可以在 [jumpto.cc/python-offline](http://jumpto.cc/python-offline) 下载到此版本。
21
+
22
+ 安装Python同时也会安装Python自带的集成开发环境(IDLE),IDLE是开发运行python程序最简单的方式。IDLE有两个窗口,一个是编辑器窗口(用于写代码),另一个是“Shell”窗口(用于运行代码)。
23
+
24
+ 
25
+
26
+ 当IDLE运行时,你也许能看到Python Shell窗口。你可以通过点击“文件 → 新窗口”菜单打开一个新的编辑窗口。一旦你写好了代码,你就应该保存它(记得要在文件名后加上.py后缀)。保存后你就可以通过点击“运行 → 运行模块”菜单(或者按F5键)运行你的Python程序了。
27
+
28
+ 除此之外,.py文件也可以用其他文本编辑器创建和编辑,例如Windows和MacOS自带文本编辑器或者Raspbian(Raspberry Pi)自带的Leafpad等。这些文件也可以通过命令行方式运行,或者在终端中输入 `python3` 后面跟Python文件名,例如 `python3 hello_world.py`。Windows下用 `py -3 hello_world.py` 来执行。
29
+
30
+ 由于Python是基于文本的,孩子们可能会打错字(称为语法错误)从而中断他们运行程序。每个项目的“社区负责人笔记”中给出了常见语法错误的指引,以及如何避免这些错误。
31
+
32
+
Original file line number Diff line number Diff line change
1
+ {
2
+ "description": false,
3
+ "id": "python_01",
4
+ "language": "zh-CN",
5
+ "number": 7,
6
+ "title": "Python 1",
7
+ "category": "cat-python",
8
+ "projects": [
9
+ {
10
+ "number": 1,
11
+ "filename": "lessons/About Me/About Me.md",
12
+ "note": "lessons/About Me/About Me - notes.md"
13
+ },
14
+ {
15
+ "number": 2,
16
+ "filename": "lessons/Rock Paper Scissors/Rock Paper Scissors.md",
17
+ "note": "lessons/Rock Paper Scissors/Rock Paper Scissors - notes.md"
18
+ },
19
+ {
20
+ "number": 3,
21
+ "filename": "lessons/Turtle Race/Turtle Race.md",
22
+ "note": "lessons/Turtle Race/Turtle Race.md"
23
+ },
24
+ {
25
+ "number": 4,
26
+ "filename": "lessons/Team Chooser/Team Chooser.md",
27
+ "note": "lessons/Team Chooser/Team Chooser - notes.md"
28
+ },
29
+ {
30
+ "number": 5,
31
+ "filename": "lessons/Colourful Creations/Colourful Creations.md",
32
+ "note": "lessons/Colourful Creations/Colourful Creations - notes.md"
33
+ },
34
+ {
35
+ "number": 6,
36
+ "filename": "lessons/Secret Messages/Secret Messages.md",
37
+ "note": "lessons/Secret Messages/Secret Messages - notes.md"
38
+ }
39
+ ],
40
+
41
+ "extras": [
42
+ {
43
+ "name": "Introduction to Python",
44
+ "note": "volunteer resources/*.md"
45
+ }
46
+ ]
47
+ }
48
+
Original file line number Diff line number Diff line change
1
+ {
2
+ "description": false,
3
+ "id": "python_02",
4
+ "language": "zh-CN",
5
+ "number": 8,
6
+ "title": "Python 2",
7
+ "category": "cat-python",
8
+ "projects": [
9
+ {
10
+ "number": 1,
11
+ "filename": "lessons/Modern Art/Modern Art.md",
12
+ "note": "lessons/Modern Art/Modern Art - notes.md"
13
+ },
14
+ {
15
+ "number": 2,
16
+ "filename": "lessons/Popular Pets/Popular Pets.md",
17
+ "note": "lessons/Popular Pets/Popular Pets - notes.md"
18
+ },
19
+ {
20
+ "number": 3,
21
+ "filename": "lessons/RPG/RPG.md",
22
+ "note": "lessons/RPG/RPG - notes.md"
23
+ },
24
+ {
25
+ "number": 4,
26
+ "filename": "lessons/ISS/ISS.md",
27
+ "note": "lessons/ISS/ISS - notes.md"
28
+ },
29
+ {
30
+ "number": 5,
31
+ "filename": "lessons/Robo-Trumps/Robo-Trumps.md",
32
+ "note": "lessons/Robo-Trumps/Robo-Trumps.md"
33
+ },
34
+ {
35
+ "number": 6,
36
+ "filename": "lessons/CodeCraft/CodeCraft.md",
37
+ "note": "lessons/CodeCraft/CodeCraft - notes.md"
38
+ }
39
+ ]
40
+ }
41
+
You can’t perform that action at this time.
0 commit comments