Skip to content

Commit 4cadea6

Browse files
committed
2016.12.9 small edit on lesson 2 and lesson 3
1 parent 33bd288 commit 4cadea6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

python_basic/python_basic_lesson_02.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,7 @@
12351235
"metadata": {
12361236
"anaconda-cloud": {},
12371237
"kernelspec": {
1238-
"display_name": "Python [default]",
1238+
"display_name": "Python 3",
12391239
"language": "python",
12401240
"name": "python3"
12411241
},

python_basic/python_basic_lesson_03.ipynb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
{
3232
"cell_type": "code",
33-
"execution_count": 1,
33+
"execution_count": null,
3434
"metadata": {
3535
"collapsed": false
3636
},
@@ -39,10 +39,7 @@
3939
"name": "stdout",
4040
"output_type": "stream",
4141
"text": [
42-
"0:scissors 1:stone 2:cloth\n",
43-
"please input:1\n",
44-
"2 cloth\n",
45-
"computer win\n"
42+
"0 scissors , 1 stone , 2 cloth , please input:1\n"
4643
]
4744
}
4845
],
@@ -64,7 +61,10 @@
6461
" s = i1 + i2\n",
6562
" return table.get(s)\n",
6663
"\n",
67-
"print('0:scissors 1:stone 2:cloth')\n",
64+
"# 显示规则\n",
65+
"for i, s in enumerate(t1):\n",
66+
" print(i, s, ', ', end='')\n",
67+
" \n",
6868
"human = input('please input:')\n",
6969
"\n",
7070
"c_index = random.randint(0,2)\n",
@@ -281,7 +281,7 @@
281281
"metadata": {
282282
"anaconda-cloud": {},
283283
"kernelspec": {
284-
"display_name": "Python [default]",
284+
"display_name": "Python 3",
285285
"language": "python",
286286
"name": "python3"
287287
},
@@ -295,7 +295,7 @@
295295
"name": "python",
296296
"nbconvert_exporter": "python",
297297
"pygments_lexer": "ipython3",
298-
"version": "3.5.2"
298+
"version": "3.5.1"
299299
}
300300
},
301301
"nbformat": 4,

0 commit comments

Comments
 (0)