2017年3月15日

Python 之解析配置文件模块ConfigParser

摘要: # coding:utf-8import configparser# 初始化cf = configparser.ConfigParser()cf.read('testconfig.conf', encoding='utf-8')# 获取指定section的配置信息host = cf['db']['d 阅读全文

posted @ 2017-03-15 14:45 sammy1989 阅读(151) 评论(0) 推荐(0) 编辑

导航