File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 100
100
* [ 数据解析] ( http://github.phodal.com/#数据解析 )
101
101
* [ Matplotlib] ( http://github.phodal.com/#matplotlib )
102
102
* [ 每周分析] ( http://github.phodal.com/#每周分析 )
103
- * [ python GitHub 每周情况分析] ( http://github.phodal.com/#python-github-每周情况分析 )
103
+ * [ Python GitHub 每周情况分析] ( http://github.phodal.com/#python-github-每周情况分析 )
104
104
* [ Python 数据分析] ( http://github.phodal.com/#python-数据分析 )
105
105
* [ Python Matplotlib图表] ( http://github.phodal.com/#python-matplotlib图表 )
106
106
* [ 存储到数据库中] ( http://github.phodal.com/#存储到数据库中 )
Original file line number Diff line number Diff line change @@ -337,7 +337,7 @@ sudo zypper install sqlite3
337
337
338
338
# ## 数据导入
339
339
340
- 需要注意的是这里是需要python2 .7,起源于对gzip的上下文管理器的支持问题
340
+ 需要注意的是这里是需要 Python 2 .7,起源于对gzip的上下文管理器的支持问题
341
341
342
342
` ` ` python
343
343
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")
403
403
404
404
不过主要的还是在于` ` glob.glob` `
405
405
406
- > glob是python自己带的一个文件操作相关模块 ,用它可以查找符合自己目的的文件,就类似于Windows下的文件搜索,支持通配符操作。
406
+ > glob是 Python 自己带的一个文件操作相关模块 ,用它可以查找符合自己目的的文件,就类似于Windows下的文件搜索,支持通配符操作。
407
407
408
408
这里也就用上了` ` gzip.GzipFile` ` 又一个不错的东西。
409
409
You can’t perform that action at this time.
0 commit comments