File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 92.52 %" , "updated_at" : " 2023-11-26T01:19:17Z " }
1+ {"translation" : " 92.53 %" , "updated_at" : " 2023-11-26T06:55:39Z " }
Original file line number Diff line number Diff line change @@ -1248,20 +1248,22 @@ msgid ""
12481248" use the default handling defined for the codec. Default error handling for"
12491249" all built-in codecs is \" strict\" (:exc:`ValueError` is raised)."
12501250msgstr ""
1251+ "错误处理方式由 errors 设置并且也可以设为 ``NULL`` 表示使用为编解码器定义的默认处理方式。 所有内置编解码器的默认错误处理方式是 "
1252+ "\" strict\" (会引发 :exc:`ValueError`)。"
12511253
12521254#: ../../c-api/unicode.rst:915
12531255msgid ""
12541256"The codecs all use a similar interface. Only deviations from the following "
12551257"generic ones are documented for simplicity."
1256- msgstr ""
1258+ msgstr "编解码器都使用类似的接口。 为了保持简单只有与下列泛型编解码器的差异才会记录在文档中。 "
12571259
12581260#: ../../c-api/unicode.rst:920
12591261msgid "Generic Codecs"
1260- msgstr ""
1262+ msgstr "泛型编解码器 "
12611263
12621264#: ../../c-api/unicode.rst:922
12631265msgid "These are the generic codec APIs:"
1264- msgstr ""
1266+ msgstr "以下是泛型编解码器的 API: "
12651267
12661268#: ../../c-api/unicode.rst:928
12671269msgid ""
@@ -1271,6 +1273,9 @@ msgid ""
12711273"up using the Python codec registry. Return ``NULL`` if an exception was "
12721274"raised by the codec."
12731275msgstr ""
1276+ "通过解码已编码字符串 *s* 的 *size* 个字节创建一个 Unicode 对象。 *encoding* 和 *errors* 具有与 "
1277+ ":func:`str` 内置函数中同名形参相同的含义。 要使用的编解码器将使用 Python 编解码器注册表来查找。 如果编解码器引发了异常则返回 "
1278+ "``NULL``。"
12741279
12751280#: ../../c-api/unicode.rst:938
12761281msgid ""
You can’t perform that action at this time.
0 commit comments