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.53 %" , "updated_at" : " 2023-11-27T11:56:05Z " }
1+ {"translation" : " 92.54 %" , "updated_at" : " 2023-11-27T15:55:44Z " }
Original file line number Diff line number Diff line change @@ -1310,13 +1310,18 @@ msgid ""
13101310"not be treated as an error. Those bytes will not be decoded and the number "
13111311"of bytes that have been decoded will be stored in *consumed*."
13121312msgstr ""
1313+ "如果 *consumed* 为 ``NULL``,则行为类似于 :c:func:`PyUnicode_DecodeUTF8`。 如果 "
1314+ "*consumed* 不为 ``NULL``,则末尾的不完整 UTF-8 字节序列将不被视为错误。 这些字节将不会被解码并且已被解码的字节数将存储在 "
1315+ "*consumed* 中。"
13131316
13141317#: ../../c-api/unicode.rst:968
13151318msgid ""
13161319"Encode a Unicode object using UTF-8 and return the result as Python bytes "
13171320"object. Error handling is \" strict\" . Return ``NULL`` if an exception was "
13181321"raised by the codec."
13191322msgstr ""
1323+ "使用 UTF-8 编码 Unicode 对象并将结果作为 Python 字节串对象返回。 错误处理方式为 \" strict\" 。 "
1324+ "如果编解码器引发了异常则将返回 ``NULL``。"
13201325
13211326#: ../../c-api/unicode.rst:975
13221327msgid ""
@@ -1326,6 +1331,9 @@ msgid ""
13261331" buffer always has an extra null byte appended (not included in *size*), "
13271332"regardless of whether there are any other null code points."
13281333msgstr ""
1334+ "返回一个指向 Unicode 对象的 UTF-8 编码格式数据的指针,并将已编码数据的大小(以字节为单位)存储在 *size* 中。 *size* "
1335+ "参数可以为 ``NULL``;在此情况下数据的大小将不会被存储。 返回的缓冲区总是会添加一个额外的空字节(不包括在 *size* "
1336+ "中),无论是否存在任何其他的空码位。"
13291337
13301338#: ../../c-api/unicode.rst:981
13311339msgid ""
You can’t perform that action at this time.
0 commit comments