In [ ]:
# 檔案名稱格式
filename_format="M06A_{year:04d}{month:02d}{day:02d}.tar.gz".format
csv_format = "M06A/{year:04d}{month:02d}{day:02d}/{hour:02d}/TDCS_M06A_{year:04d}{month:02d}{day:02d}_{hour:02d}0000.csv".format
In [ ]:
# Hint
from urllib.parse import quote_plus
"https://zh.wikipedia.org/wiki/"+quote_plus('臺灣行政區人口列表')
In [ ]:
In [ ]:
# 欄位名稱
M06A_fields = ['VehicleType',
'DetectionTime_O','GantryID_O',
'DetectionTime_D','GantryID_D ',
'TripLength', 'TripEnd', 'TripInformation']
In [ ]: