@@ -865,11 +865,11 @@ msgstr "将 ``%xx`` 转义符替换为其单八位等价物,并返回一个 :c
865865msgid ""
866866"If it is a :class:`str`, unescaped non-ASCII characters in *string* are "
867867"encoded into UTF-8 bytes."
868- msgstr ""
868+ msgstr "如果它是 :class:`str`,则 *string* 中未转义的非 ASCII 字符会被编码为 UTF-8 字节串。 "
869869
870870#: ../../library/urllib.parse.rst:632
871871msgid "Example: ``unquote_to_bytes('a%26%EF')`` yields ``b'a&\\ xef'``."
872- msgstr ""
872+ msgstr "例如: ``unquote_to_bytes('a%26%EF')`` y将产生 ``b'a& \\ xef'``。 "
873873
874874#: ../../library/urllib.parse.rst:638
875875msgid ""
@@ -879,6 +879,9 @@ msgid ""
879879"operation with the :func:`~urllib.request.urlopen` function, then it should "
880880"be encoded to bytes, otherwise it would result in a :exc:`TypeError`."
881881msgstr ""
882+ "将一个包含有 :class:`str` 或 :class:`bytes` 对象的映射对象或二元组序列转换为以百分号编码的 ASCII 文本字符串。 "
883+ "如果所产生的字符串要被用作 :func:`~urllib.request.urlopen` 函数的 POST 操作的 "
884+ "*data*,则它应当被编码为字节串,否则它将导致 :exc:`TypeError`。"
882885
883886#: ../../library/urllib.parse.rst:645
884887msgid ""
@@ -892,6 +895,11 @@ msgid ""
892895"and not encode '/' characters. For maximum control of what is quoted, use "
893896"``quote`` and specify a value for *safe*."
894897msgstr ""
898+ "结果字符串是一系列 ``key=value`` 对,由 ``'&'`` 字符进行分隔,其中 *key* 和 *value* 都已使用 "
899+ "*quote_via* 函数转码。 在默认情况下,会使用 :func:`quote_plus` 来转码值,这意味着空格会被转码为 ``'+'`` 字符而"
900+ " '/' 字符会被转码为 ``%2F``,即遵循 GET 请求的标准 (``application/x-www-form-urlencoded``)。 "
901+ "另一个可以作为 *quote_via* 传入的替代函数是 :func:`quote`,它将把空格转码为 ``%20`` 并且不编码 '/' 字符。 "
902+ "为了最大程序地控制要转码的内容,请使用 ``quote`` 并指定 *safe* 的值。"
895903
896904#: ../../library/urllib.parse.rst:655
897905msgid ""
@@ -903,6 +911,9 @@ msgid ""
903911"for the key. The order of parameters in the encoded string will match the "
904912"order of parameter tuples in the sequence."
905913msgstr ""
914+ "当使用二元组序列作为 *query* 参数时,每个元组的第一个元素为键而第二个元素为值。 值元素本身也可以为一个序列,在那种情况下,如果可选的形参 "
915+ "*doseq* 的值为 ``True``,则每个键的值序列元素生成单个 ``key=value`` 对(以 ``'&'`` 分隔)。 "
916+ "被编码的字符串中的参数顺序将与序列中的形参元素顺序相匹配。"
906917
907918#: ../../library/urllib.parse.rst:663
908919msgid ""
0 commit comments