擅长:python、mysql、java
<pre><code>class RawConfigParser:
def __init__(self, defaults=None, dict_type=_default_dict,
allow_no_value=False):
self._dict = dict_type
self._sections = self._dict()
self._defaults = self._dict()
if allow_no_value:
self._optcre = self.OPTCRE_NV
else:
self._optcre = self.OPTCRE
if defaults:
for key, value in defaults.items():
self._defaults[self.optionxform(key)] = value
</code></pre>
<p>导入配置分析器</p>
<p>cf=ConfigParser.ConfigParser(允许没有值=True)</p>