@@ -765,6 +765,8 @@ msgid ""
765765"will be used to create the dictionary objects for the list of sections, for "
766766"the options within a section, and for the default values."
767767msgstr ""
768+ "主配置解析器。 当给定 *defaults* 时,它会被初始化为包含固有默认值的字典。 当给定 *dict_type* "
769+ "时,它将被用来创建包含节、节中的选项以及默认值的字典。"
768770
769771#: ../../library/configparser.rst:880
770772msgid ""
@@ -774,6 +776,9 @@ msgid ""
774776"can be indented. When *inline_comment_prefixes* is given, it will be used "
775777"as the set of substrings that prefix comments in non-empty lines."
776778msgstr ""
779+ "当给定 *delimiters* 时,它会被用作分隔键与值的子字符串的集合。 当给定 *comment_prefixes* "
780+ "时,它将被用作在否则为空行的注释的前缀子字符串的集合。 注释可以被缩进。 当给定 *inline_comment_prefixes* "
781+ "时,它将被用作非空行的注释的前缀子字符串的集合。"
777782
778783#: ../../library/configparser.rst:886
779784msgid ""
@@ -787,6 +792,11 @@ msgid ""
787792"values are accepted; the value held for these is ``None`` and they are "
788793"serialized without the trailing delimiter."
789794msgstr ""
795+ "当 *strict* 为 ``True`` (默认值) 时,解析器在从单个源(文件、字符串或字典)读取时将不允许任何节或选项出现重复,否则会引发 "
796+ ":exc:`DuplicateSectionError` 或 :exc:`DuplicateOptionError`。 当 "
797+ "*empty_lines_in_values* 为 ``False`` (默认值: ``True``) 时,每个空行均表示一个选项的结束。 "
798+ "在其他情况下,一个多行选项内部的空行会被保留为值的一部分。 当 *allow_no_value* 为 ``True`` (默认值: ``False``)"
799+ " 时,将接受没有值的选项;此种选项的值将为 ``None`` 并且它们会以不带末尾分隔符的形式被序列化。"
790800
791801#: ../../library/configparser.rst:896
792802msgid ""
@@ -795,6 +805,8 @@ msgid ""
795805" (normally named ``\" DEFAULT\" ``). This value can be retrieved and changed "
796806"on runtime using the ``default_section`` instance attribute."
797807msgstr ""
808+ "当给定 *default_section* 时,它将指定存放其他节的默认值和用于插值的特殊节的名称 (通常命名为 ``\" DEFAULT\" ``)。 "
809+ "该值可通过使用 ``default_section`` 实例属性在运行时被读取或修改。"
798810
799811#: ../../library/configparser.rst:901
800812msgid ""
@@ -804,6 +816,9 @@ msgid ""
804816"advanced variant inspired by ``zc.buildout``. More on the subject in the "
805817"`dedicated documentation section <#interpolation-of-values>`_."
806818msgstr ""
819+ "插值行为可通过给出 *interpolation* 参数提供自定义处理程序的方式来定制。 ``None`` "
820+ "可用来完全禁用插值,``ExtendedInterpolation()`` 提供了一种更高级的变体形式,它的设计受到了 ``zc.buildout`` "
821+ "的启发。 有关该主题的更多信息请参见 `专门的文档章节 <#interpolation-of-values>`_。"
807822
808823#: ../../library/configparser.rst:907
809824msgid ""
0 commit comments