close

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 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 天才R 的頭像
    天才R

    做 個 有 趣 的 人

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