|
5 | 5 | # |
6 | 6 | # Translators: |
7 | 7 | # python-doc bot, 2025 |
| 8 | +# Freesand Leo <yuqinju@163.com>, 2025 |
8 | 9 | # |
9 | 10 | #, fuzzy |
10 | 11 | msgid "" |
11 | 12 | msgstr "" |
12 | 13 | "Project-Id-Version: Python 3.14\n" |
13 | 14 | "Report-Msgid-Bugs-To: \n" |
14 | | -"POT-Creation-Date: 2025-05-09 14:19+0000\n" |
| 15 | +"POT-Creation-Date: 2025-11-13 14:15+0000\n" |
15 | 16 | "PO-Revision-Date: 2025-09-16 00:00+0000\n" |
16 | | -"Last-Translator: python-doc bot, 2025\n" |
| 17 | +"Last-Translator: Freesand Leo <yuqinju@163.com>, 2025\n" |
17 | 18 | "Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
18 | 19 | "MIME-Version: 1.0\n" |
19 | 20 | "Content-Type: text/plain; charset=UTF-8\n" |
@@ -384,6 +385,61 @@ msgstr "" |
384 | 385 | "``0``;*\\*bytes* 中的地址可能与其输入值不同。 如果重新分配失败,则位于 *\\*bytes* " |
385 | 386 | "的原始字节串对象将被释放,*\\*bytes* 将被设为 ``NULL``,同时设置 :exc:`MemoryError`,然后返回 ``-1``。" |
386 | 387 |
|
| 388 | +#: ../../c-api/bytes.rst:226 |
| 389 | +msgid "" |
| 390 | +"Get the string representation of *bytes*. This function is currently used to" |
| 391 | +" implement :meth:`!bytes.__repr__` in Python." |
| 392 | +msgstr "" |
| 393 | + |
| 394 | +#: ../../c-api/bytes.rst:229 |
| 395 | +msgid "" |
| 396 | +"This function does not do type checking; it is undefined behavior to pass " |
| 397 | +"*bytes* as a non-bytes object or ``NULL``." |
| 398 | +msgstr "" |
| 399 | + |
| 400 | +#: ../../c-api/bytes.rst:232 |
| 401 | +msgid "" |
| 402 | +"If *smartquotes* is true, the representation will use a double-quoted string" |
| 403 | +" instead of single-quoted string when single-quotes are present in *bytes*. " |
| 404 | +"For example, the byte string ``'Python'`` would be represented as " |
| 405 | +"``b\"'Python'\"`` when *smartquotes* is true, or ``b'\\'Python\\''`` when it" |
| 406 | +" is false." |
| 407 | +msgstr "" |
| 408 | + |
| 409 | +#: ../../c-api/bytes.rst:238 |
| 410 | +msgid "" |
| 411 | +"On success, this function returns a :term:`strong reference` to a " |
| 412 | +":class:`str` object containing the representation. On failure, this returns " |
| 413 | +"``NULL`` with an exception set." |
| 414 | +msgstr "" |
| 415 | + |
| 416 | +#: ../../c-api/bytes.rst:245 |
| 417 | +msgid "" |
| 418 | +"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* " |
| 419 | +"must be the size of *s*." |
| 420 | +msgstr "" |
| 421 | + |
| 422 | +#: ../../c-api/bytes.rst:248 |
| 423 | +msgid "" |
| 424 | +"*errors* must be one of ``\"strict\"``, ``\"replace\"``, or ``\"ignore\"``. " |
| 425 | +"If *errors* is ``NULL``, then ``\"strict\"`` is used by default." |
| 426 | +msgstr "" |
| 427 | +"*errors* 必须为 ``\"strict\"``, ``\"replace\"`` 或 ``\"ignore\"`` 之一。 如果 " |
| 428 | +"*errors* 为 ``NULL``,则默认使用 ``\"strict\"``。" |
| 429 | + |
| 430 | +#: ../../c-api/bytes.rst:251 |
| 431 | +msgid "" |
| 432 | +"On success, this function returns a :term:`strong reference` to a Python " |
| 433 | +":class:`bytes` object containing the unescaped string. On failure, this " |
| 434 | +"function returns ``NULL`` with an exception set." |
| 435 | +msgstr "" |
| 436 | +"成功时,此函数将返回一个指向包含未转义文本的 Python :class:`bytes` 对象的 :term:`strong reference`。 " |
| 437 | +"失败时,此函数将返回 ``NULL`` 并设置一个异常。" |
| 438 | + |
| 439 | +#: ../../c-api/bytes.rst:255 |
| 440 | +msgid "*unicode* and *recode_encoding* are now unused." |
| 441 | +msgstr "*unicode* 和 *recode_encoding* 现在未被使用。" |
| 442 | + |
387 | 443 | #: ../../c-api/bytes.rst:11 |
388 | 444 | msgid "object" |
389 | 445 | msgstr "object -- 对象" |
|
0 commit comments