Skip to content

Commit 7497e1c

Browse files
committed
fix typo
1 parent 09eb8d0 commit 7497e1c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

02-python-essentials/02.05-indexing-and-slicing.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@
440440
"cell_type": "markdown",
441441
"metadata": {},
442442
"source": [
443-
"> Just to beautiful to ignore. \n",
443+
"> Just too beautiful to ignore. \n",
444444
"----Guido van Rossum"
445445
]
446446
},
@@ -480,7 +480,7 @@
480480
"name": "python",
481481
"nbconvert_exporter": "python",
482482
"pygments_lexer": "ipython2",
483-
"version": "2.7.10"
483+
"version": "2.7.11"
484484
}
485485
},
486486
"nbformat": 4,

05-advanced-python/05.02-interacting-with-the-OS---os.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
"- `os.path.abspath()`:返回路径的绝对路径\n",
436436
"- `os.path.dirname(path)`:返回路径中的文件夹部分\n",
437437
"- `os.path.basename(path)`:返回路径中的文件部分\n",
438-
"- `os.path.slitext(path)`:将路径与扩展名分开\n",
438+
"- `os.path.splitext(path)`:将路径与扩展名分开\n",
439439
"- `os.path.expanduser(path)`:展开 `'~'` 和 `'~user'`"
440440
]
441441
}
@@ -456,7 +456,7 @@
456456
"name": "python",
457457
"nbconvert_exporter": "python",
458458
"pygments_lexer": "ipython2",
459-
"version": "2.7.6"
459+
"version": "2.7.11"
460460
}
461461
},
462462
"nbformat": 4,

10-something-interesting/10.04-louis-cha's-kungfu-world.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"出现上图的原因是它找不到合适的中文字体去显示中文,为此,我们可以去寻找一些支持中文的字体来进行设置。\n",
104104
"\n",
105105
"`Windows 7` 及以上的系统中,字体位置为 `C:/Windows/Fonts`,例如:\n",
106-
"- 宋体:`C:/Windows/Fonts/simsum.ttc`\n",
106+
"- 宋体:`C:/Windows/Fonts/simsun.ttc`\n",
107107
"\n",
108108
"`Linux` 系统可以通过 `fc-list` 命令查看已有的字体和相应的位置,例如:\n",
109109
"- `/usr/share/fonts/truetype/osx-font-family/Songti.ttc: Songti TC,宋體\\-繁,宋体\\-繁:style=Bold,粗體,粗体`\n",
@@ -116,7 +116,7 @@
116116
"找到了字体的位置,我们可以使用 `matplotlib.font_manager` 中的 `FontProperties` 导入字体:\n",
117117
"\n",
118118
" font_xxx = FontProperties(fname=\"/usr/share/fonts/truetype/osx-font-family/Songti.ttc\")\n",
119-
" font_xxx = FontProperties(fname=\"C://Windows//Fonts//simsum.ttc\")\n",
119+
" font_xxx = FontProperties(fname=\"C://Windows//Fonts//simsun.ttc\")\n",
120120
"\n",
121121
"为了方便,我们不使用字体的绝对路径导入,而是将需要的字体放在程序对应的文件夹下:\n",
122122
"\n",
@@ -1425,7 +1425,7 @@
14251425
"name": "python",
14261426
"nbconvert_exporter": "python",
14271427
"pygments_lexer": "ipython2",
1428-
"version": "2.7.6"
1428+
"version": "2.7.11"
14291429
}
14301430
},
14311431
"nbformat": 4,

0 commit comments

Comments
 (0)