From e59ac305bb96f4b7bb464102e6769989df3da026 Mon Sep 17 00:00:00 2001 From: liuyunbin Date: Sun, 6 Oct 2019 19:17:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Python=20=E6=8B=BC?= =?UTF-8?q?=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- chapters/11-analytics.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a84d29a..5525889 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ * [数据解析](http://github.phodal.com/#数据解析) * [Matplotlib](http://github.phodal.com/#matplotlib) * [每周分析](http://github.phodal.com/#每周分析) - * [python GitHub 每周情况分析](http://github.phodal.com/#python-github-每周情况分析) + * [Python GitHub 每周情况分析](http://github.phodal.com/#python-github-每周情况分析) * [Python 数据分析](http://github.phodal.com/#python-数据分析) * [Python Matplotlib图表](http://github.phodal.com/#python-matplotlib图表) * [存储到数据库中](http://github.phodal.com/#存储到数据库中) diff --git a/chapters/11-analytics.md b/chapters/11-analytics.md index e46b33b..fd9f21e 100644 --- a/chapters/11-analytics.md +++ b/chapters/11-analytics.md @@ -337,7 +337,7 @@ sudo zypper install sqlite3 ### 数据导入 -需要注意的是这里是需要python2.7,起源于对gzip的上下文管理器的支持问题 +需要注意的是这里是需要 Python 2.7,起源于对gzip的上下文管理器的支持问题 ```python def handle_gzip_file(filename): @@ -403,7 +403,7 @@ date_re = re.compile(r"([0-9]{4})-([0-9]{2})-([0-9]{2})-([0-9]+)\.json.gz") 不过主要的还是在于``glob.glob`` -> glob是python自己带的一个文件操作相关模块,用它可以查找符合自己目的的文件,就类似于Windows下的文件搜索,支持通配符操作。 +> glob是 Python 自己带的一个文件操作相关模块,用它可以查找符合自己目的的文件,就类似于Windows下的文件搜索,支持通配符操作。 这里也就用上了``gzip.GzipFile``又一个不错的东西。