返回顶部

2019年3月22日

python 学习_第二模块 configparser 模块

摘要: import configparser conf = configparser.ConfigParser() # 实例化 conf.sections() # 调用sections方法 conf.read('test.ini') # 查看 print(conf['topsecret.server.com']['port']) # 添加 section sec = conf.... 阅读全文

posted @ 2019-03-22 13:49 augustyang 阅读(98) 评论(0) 推荐(0) 编辑

导航