经常给小侄、外甥们买书,做个记录,防止买重,也方便日后重复购买。同时,也期待您推荐其他好书。
Month: 三月 2016
Python Application Notes: packages, modules and classes
For better structuring a Python project, I decide to learn of packages, modules and classes. This article also shows how to import all modules and classes in a directory.
Read and write CSV files with Python
I am analyzing a trace in GTFS, a collection of CSV files. Each record of a csv file is consisting of one or more fields speparated by commas ,
. It is error-prone to read csv files by simply using [line.split(',') for line in f.readlines()]
for fields might contain commas. Therefore, I decide to switch to the Python module csv.