Parse config file of unknown length
问题 I am a python noob that has hit a bit of a snag. I need to import a config file to make a program work. I am using the configparser of course but here is the problem I am having and can not figure out. My config file will look something like this [Book1] title = "Hello World" status = "in" location = "s2v14" [Book2] .... and this will continue indefinately. My problem is how do I parse the config file if I dont know what the section is or even how many sections will exist. The purpose of this