擅长:python、mysql、java
<p>我相信你在寻找你的<code>SafeConfigParser</code>中的<a href="http://docs.python.org/library/configparser.html#ConfigParser.RawConfigParser.sections" rel="nofollow">the ^{<cd1>} method</a>。对于您的示例,它应该返回<code>['section1', 'section2', 'section3']</code>,您可以对其进行迭代。你知道吗</p>