one.ini格式文件内容如下:
[test_section]
test_param = 123456
python脚本
import configparser
config = configparser.ConfigParser()
config.read_file(open(‘wu.ini‘))
test_value = config.get("test_section","test_param")
print(test_value)
原文:https://www.cnblogs.com/wyx1990/p/12814313.html