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
相关文章
相关标签/搜索