Python 配置文件(configparser)

  1. 使用Python模块configparser
  2. 模块用法
    1)参考1
    2)补充:官方documentation

1)使用前,先安装pip install ConfigParser; import configparser;
2)配置文件格式:.conf; .ini;
在这里插入图片描述
3)
在这里插入图片描述在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43650411/article/details/89204235