python - How to parse INI style file -


i have file in format similar ini

[name1] valu1  [name2] value2  [section] [name3] valu3 

how parse such files in python

use configparser, documentation description:

this module defines class configparser. configparser class implements basic configuration file parser language provides structure similar find on microsoft windows ini files. can use write python programs can customized end users easily.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -