Skip to content

Commit b57c00c

Browse files
committed
2016.12.22 little edit on lesson 4
1 parent 30aec73 commit b57c00c

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

python_basic/python_basic_lesson_04.ipynb

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"\n",
6363
"while not guess_ok_mark:\n",
6464
"\n",
65-
" cur_guess = int((min+max)/2)\n",
65+
" cur_guess = int((min + max) / 2)\n",
6666
" print('I guess:', cur_guess)\n",
6767
" human_answer = input('Please tell me big or small:')\n",
6868
" if human_answer == 'big':\n",
@@ -185,7 +185,7 @@
185185
},
186186
{
187187
"cell_type": "code",
188-
"execution_count": 4,
188+
"execution_count": 13,
189189
"metadata": {
190190
"collapsed": false
191191
},
@@ -194,7 +194,7 @@
194194
"name": "stdout",
195195
"output_type": "stream",
196196
"text": [
197-
"time: 0.016383886337280273\n"
197+
"time: 0.011875152587890625\n"
198198
]
199199
}
200200
],
@@ -395,7 +395,7 @@
395395
},
396396
{
397397
"cell_type": "code",
398-
"execution_count": 11,
398+
"execution_count": 14,
399399
"metadata": {
400400
"collapsed": false
401401
},
@@ -404,8 +404,8 @@
404404
"name": "stdout",
405405
"output_type": "stream",
406406
"text": [
407-
"2016-12-10 09:02:14.519363\n",
408-
"2016-12-10 19:02:14.519363\n"
407+
"2016-12-22 13:00:56.872066\n",
408+
"2016-12-22 23:00:56.872066\n"
409409
]
410410
}
411411
],
@@ -422,7 +422,7 @@
422422
},
423423
{
424424
"cell_type": "code",
425-
"execution_count": 12,
425+
"execution_count": 15,
426426
"metadata": {
427427
"collapsed": false
428428
},
@@ -431,8 +431,8 @@
431431
"name": "stdout",
432432
"output_type": "stream",
433433
"text": [
434-
"2016-12-10 09:02:20.223590\n",
435-
"2016-12-10 19:22:10.223590\n"
434+
"2016-12-22 13:01:14.431849\n",
435+
"2016-12-22 23:21:04.431849\n"
436436
]
437437
}
438438
],
@@ -484,7 +484,7 @@
484484
},
485485
{
486486
"cell_type": "code",
487-
"execution_count": 9,
487+
"execution_count": 16,
488488
"metadata": {
489489
"collapsed": false
490490
},
@@ -494,7 +494,8 @@
494494
"output_type": "stream",
495495
"text": [
496496
"110.0\n",
497-
"120.0\n"
497+
"120.0\n",
498+
"130.0\n"
498499
]
499500
}
500501
],
@@ -505,7 +506,8 @@
505506
" return money + money * rate\n",
506507
"\n",
507508
"print(cal_0(100))\n",
508-
"print(cal_0(100,0.2))"
509+
"print(cal_0(100,0.2))\n",
510+
"print(cal_0(rate=0.3,money=100))"
509511
]
510512
},
511513
{

0 commit comments

Comments
 (0)