Python ---使用configparse讀取配置文件

本文是使用Python自帶類configparserweb 1.config.ini文件,未修改前 [DEFAULT] aa = 111 [HTTP] baseurl = 127.0.0.1 port = 8000 [SECTION1] bb = 222 [SECTION2] cc = CC abc = aa 2.對配置文件進行操做源碼 import configparser cf = c
相關文章
相關標籤/搜索