Q: 

exception configparser.DuplicateOptionError 

Exception raised by strict parsers if a single option appears twice during reading from a single file, string or dictionary. This catches misspellings and case sensitivity-related errors, e.g. a dictionary may have two keys representing the same case-insensitive configuration key. 

 

 

 

 

SOL: 

config = configparser.RawConfigParser(allow_no_value=True,strict=False) 

 

 

 

 

 

https://docs.python.org/3.2/library/configparser.html 

全站熱搜

天才R 發表在 痞客邦 留言(0) 人氣()