如何编写Python配置文件的详细步骤?
- 内容介绍
- 文章标签
- 相关推荐
本文共计712个文字,预计阅读时间需要3分钟。
创建配置文件+在磁盘上创建一个配置文件,命名为test.ini,内容如下:[baseconf]host=127.0.0.1port=3306user=rootpassword=rootdb_name=gloryroad[test]ip=127.0.0.1int=1float=1.5bool=True注意:要将文件保存为test.ini。
本文共计712个文字,预计阅读时间需要3分钟。
创建配置文件+在磁盘上创建一个配置文件,命名为test.ini,内容如下:[baseconf]host=127.0.0.1port=3306user=rootpassword=rootdb_name=gloryroad[test]ip=127.0.0.1int=1float=1.5bool=True注意:要将文件保存为test.ini。

