from configobj import ConfigObj filename test ini ini_config ConfigObj

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from configobj import ConfigObj
filename = r".\test.ini"
ini_config = ConfigObj(filename, raise_errors = True)
print(ini_config)
print(ini_config["tttt"])
print(ini_config.keys())
print(ini_config.values())
print(ini_config["MYSECT"])