基礎讀取配置文件
- -read(filename) 直接讀取文件內容
- -sections() 得到所有的section,並以列表的形式返回
- -options(section) 得到該section的所有option
- -items(section) 得到該section的所有鍵值對
- -get(section,option) 得到section中option的值,返回爲string類型
- -getint(section,option) 得到section中option的值,返回爲int類型,還有相應的getboolean()和getfloat() 函數。