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)
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)