修复 Python 拼写错误

This commit is contained in:
liuyunbin 2019-10-06 19:17:12 +08:00
parent a1750d88c9
commit e59ac305bb
2 changed files with 3 additions and 3 deletions

View file

@ -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/#存储到数据库中)

View file

@ -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``又一个不错的东西。