使用 python 讀取 yaml 檔案
Yaml 全名是(YAML Ain’t a Markup Language)是一個可讀性高,用來表達資料序列的格式(更多資訊請參考 wiki).
之前要使用 Config 檔時,通常使用 Configparser 這個套件(Python wiki) ,他的config 檔格式長這樣:
[SectionOne]
Status: Single
Name: Derek
Value: Yes
Age: 30
Single: True
[SectionTwo]…
These were the top 10 stories published by A multi hyphen life in 2017. You can also dive into monthly archives for 2017 by using the calendar at the top of this page.