Skip to content

Commit b6274e3

Browse files
committed
2016.11.27 edit python basic lesson 1 and 2 notebook
1 parent d5b824a commit b6274e3

File tree

3 files changed

+109
-39
lines changed

3 files changed

+109
-39
lines changed

python_basic/python_basic_lesson_01.ipynb

Lines changed: 52 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,49 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"Preparation Work\n",
7+
"# Lesson 1\n",
88
"\n",
9-
"Please visit: https://www.python.org/downloads/ download the latest Python and tools\n",
10-
"Python version: 3.5.2 and 2.7.12\n",
9+
"Python Basic, Lesson 11, v1.0.0, 2016.11 by David.Yi\n",
10+
"\n",
11+
"\n",
12+
"### 本次内容要点\n",
13+
"\n",
14+
"1.\tpython 简介\n",
15+
"2. 准备工作\n",
16+
"2.\t基本变量概念\n",
17+
"3.\tprint() 和 input() 用法\n",
18+
"4.\tpython 开发环境介绍\n",
19+
" * python idle 用法\n",
20+
" * anaconda 介绍\n",
21+
" * jupyter 和 notebook介绍\n",
22+
" * pycharm 用法介绍"
23+
]
24+
},
25+
{
26+
"cell_type": "markdown",
27+
"metadata": {},
28+
"source": [
29+
"\n",
30+
"\n",
31+
"\n",
32+
"\n",
33+
"### 基本变量概念\n",
34+
"\n",
35+
"### print() 和 input() 用法\n",
36+
"\n",
37+
"### python 开发环境介绍\n",
38+
"\n",
39+
"#### python idle 用法\n",
40+
"#### anaconda 介绍\n",
41+
"#### jupyter 和 notebook介绍\n",
42+
"#### pycharm 用法介绍"
43+
]
44+
},
45+
{
46+
"cell_type": "markdown",
47+
"metadata": {},
48+
"source": [
49+
"### python 简介\n",
1150
"\n",
1251
"Why we study Python\n",
1352
"\n",
@@ -22,32 +61,17 @@
2261
"勤奋\n",
2362
"阅读\n",
2463
"实践,实践,再实践\n",
25-
"搜索技巧\n",
26-
"\n",
27-
"\n",
28-
"Python 简介\n",
29-
"基本变量概念\n",
30-
"Print() 和 Input() 用法\n",
31-
"Python IDLE 用法\n",
32-
"交互式 python 环境 Juypter 介绍\n",
33-
"\n",
34-
"about LISTS\n",
35-
"\n",
36-
"“Lists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application).” \n",
37-
"Very powerful, can store many kinds of real world data \n",
38-
"Create list\n",
39-
"Add an item\n",
40-
"Delete an item\n",
41-
"Sort\n",
42-
"Multidimensional\n",
43-
"Save and load\n",
44-
"\n",
45-
"Homework\n",
46-
"What can PRINT() statement do? please name an example of a relatively complicated coding\n",
47-
"If you were asked to develop an XPRINT statement in order to extend current one, which functions do you think need to be improved or added?\n",
48-
"Group assignment\n",
64+
"搜索技巧"
65+
]
66+
},
67+
{
68+
"cell_type": "markdown",
69+
"metadata": {},
70+
"source": [
71+
"### 准备工作\n",
4972
"\n",
50-
"\n"
73+
"请访问: https://www.python.org/downloads/ 下载最新的 python 解释器和相关工具\n",
74+
"目前 python 最新版本是 3.5.2 和 2.7.12,python 2.7系列将在未来不被支持,从发展来说,我们选用 python 3.x 版本。\n"
5175
]
5276
},
5377
{
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {
7+
"collapsed": true
8+
},
9+
"outputs": [],
10+
"source": [
11+
"about LISTS\n",
12+
"\n",
13+
"“Lists are mutable sequences, typically used to store collections of homogeneous items (where the precise degree of similarity will vary by application).” \n",
14+
"Very powerful, can store many kinds of real world data \n",
15+
"Create list\n",
16+
"Add an item\n",
17+
"Delete an item\n",
18+
"Sort\n",
19+
"Multidimensional\n",
20+
"Save and load"
21+
]
22+
}
23+
],
24+
"metadata": {
25+
"kernelspec": {
26+
"display_name": "Python 3",
27+
"language": "python",
28+
"name": "python3"
29+
},
30+
"language_info": {
31+
"codemirror_mode": {
32+
"name": "ipython",
33+
"version": 3
34+
},
35+
"file_extension": ".py",
36+
"mimetype": "text/x-python",
37+
"name": "python",
38+
"nbconvert_exporter": "python",
39+
"pygments_lexer": "ipython3",
40+
"version": "3.5.1"
41+
}
42+
},
43+
"nbformat": 4,
44+
"nbformat_minor": 0
45+
}

python_basic/python_basic_outline.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,28 @@
44

55
#### Lesson 1
66
1. python 简介
7-
2. 基本变量概念
8-
3. print() 和 input() 用法
9-
4. python 开发环境介绍
7+
2. 准备工作
8+
3. 基本变量概念
9+
4. print() 和 input() 用法
10+
5. python 开发环境介绍
1011
* python idle 用法
1112
* anaconda 介绍
1213
* jupyter 和 notebook介绍
1314
* pycharm 用法介绍
1415

1516
#### Lesson 2
1617
1. 循环语句 for 和 range() 用法
17-
2. 常用数据类型
18+
2.常用数据类型
1819
* list 用法
1920
* dict 用法
2021
* tuple 用法
21-
3. 随机数介绍
22+
3.随机数介绍
2223

2324
#### Lesson 3
2425
1. list 的切片用法
25-
2. 函数用法
26-
3. 日期库 datetime 用法介绍,datetime、time 等库的介绍,获得日期,字符串和日期转换,日期格式介绍,日期加减计算
27-
4. 程序思路训练
26+
2.函数用法
27+
3.日期库 datetime 用法介绍,datetime、time 等库的介绍,获得日期,字符串和日期转换,日期格式介绍,日期加减计算
28+
4.程序思路训练
2829

2930
#### Lesson 4
3031
1. 集合库 collections 简介
@@ -33,7 +34,7 @@
3334
* defaultdict: 带有默认值的字典
3435
* OrderedDict: 有序字典
3536
* Counter: 计数器
36-
2. 函数不同参数形式介绍和举例
37+
2.函数不同参数形式介绍和举例
3738

3839
#### Lesson 5
3940
1. 文件和目录操作之一:文件和目录操作
@@ -42,5 +43,5 @@
4243

4344
#### Lesson 6
4445
1. 错误处理介绍
45-
2. pep8 规定以及 python 编程基本规范
46-
3. 程序思路训练
46+
2.pep8 规定以及 python 编程基本规范
47+
3.程序思路训练

0 commit comments

Comments
 (0)