摘要:
Python 之ConfigParser一、ConfigParser简介ConfigParser 是用来读取配置文件的包。配置文件的格式如下:中括号“[ ]”内包含的为section。section 下面为类似于key-value 的配置内容。 [db] db_host = 127.0.0.1 db_port = 22 db_user = root db_pass = rootroot [concurrent] thread = 10 processor = 20二、ConfigParser 初始工作使用ConfigParser 首选需要初始化实例,并读取配置文件:cf = ConfigPa. 阅读全文
posted @ 2013-11-29 10:50
little white
阅读(328)
评论(0)
推荐(0)
浙公网安备 33010602011771号