摘要: 在Python中,读取配置文件常用的库有configparser和yaml。以下是使用configparser读取INI格式配置文件的例子: 首先是配置文件config.ini的内容: [database] user = myuser password = mypassword host = loc 阅读全文
posted @ 2024-09-09 18:11 奥兰王子 阅读(286) 评论(0) 推荐(0)