|
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.13\n" |
13 | 14 | "Report-Msgid-Bugs-To: \n" |
14 | | -"POT-Creation-Date: 2025-01-03 14:16+0000\n" |
| 15 | +"POT-Creation-Date: 2025-11-13 15:03+0000\n" |
15 | 16 | "PO-Revision-Date: 2025-09-15 01:03+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" |
@@ -359,6 +360,61 @@ msgstr "" |
359 | 360 | "``0``;*\\*bytes* 中的��址可能与其输入值不同。 如果重新分配失败,则位于 *\\*bytes* " |
360 | 361 | "的原始字节串对象将被释放,*\\*bytes* 将被设为 ``NULL``,同时设置 :exc:`MemoryError`,然后返回 ``-1``。" |
361 | 362 |
|
| 363 | +#: ../../c-api/bytes.rst:208 |
| 364 | +msgid "" |
| 365 | +"Get the string representation of *bytes*. This function is currently used to" |
| 366 | +" implement :meth:`!bytes.__repr__` in Python." |
| 367 | +msgstr "" |
| 368 | + |
| 369 | +#: ../../c-api/bytes.rst:211 |
| 370 | +msgid "" |
| 371 | +"This function does not do type checking; it is undefined behavior to pass " |
| 372 | +"*bytes* as a non-bytes object or ``NULL``." |
| 373 | +msgstr "" |
| 374 | + |
| 375 | +#: ../../c-api/bytes.rst:214 |
| 376 | +msgid "" |
| 377 | +"If *smartquotes* is true, the representation will use a double-quoted string" |
| 378 | +" instead of single-quoted string when single-quotes are present in *bytes*. " |
| 379 | +"For example, the byte string ``'Python'`` would be represented as " |
| 380 | +"``b\"'Python'\"`` when *smartquotes* is true, or ``b'\\'Python\\''`` when it" |
| 381 | +" is false." |
| 382 | +msgstr "" |
| 383 | + |
| 384 | +#: ../../c-api/bytes.rst:220 |
| 385 | +msgid "" |
| 386 | +"On success, this function returns a :term:`strong reference` to a " |
| 387 | +":class:`str` object containing the representation. On failure, this returns " |
| 388 | +"``NULL`` with an exception set." |
| 389 | +msgstr "" |
| 390 | + |
| 391 | +#: ../../c-api/bytes.rst:227 |
| 392 | +msgid "" |
| 393 | +"Unescape a backslash-escaped string *s*. *s* must not be ``NULL``. *len* " |
| 394 | +"must be the size of *s*." |
| 395 | +msgstr "" |
| 396 | + |
| 397 | +#: ../../c-api/bytes.rst:230 |
| 398 | +msgid "" |
| 399 | +"*errors* must be one of ``\"strict\"``, ``\"replace\"``, or ``\"ignore\"``. " |
| 400 | +"If *errors* is ``NULL``, then ``\"strict\"`` is used by default." |
| 401 | +msgstr "" |
| 402 | +"*errors* 必须为 ``\"strict\"``, ``\"replace\"`` 或 ``\"ignore\"`` 之一。 如果 " |
| 403 | +"*errors* 为 ``NULL``,则默认使用 ``\"strict\"``。" |
| 404 | + |
| 405 | +#: ../../c-api/bytes.rst:233 |
| 406 | +msgid "" |
| 407 | +"On success, this function returns a :term:`strong reference` to a Python " |
| 408 | +":class:`bytes` object containing the unescaped string. On failure, this " |
| 409 | +"function returns ``NULL`` with an exception set." |
| 410 | +msgstr "" |
| 411 | +"成功时,此函数将返回一个指向包含未转义文本的 Python :class:`bytes` 对象的 :term:`strong reference`。 " |
| 412 | +"失败时,此函数将返回 ``NULL`` 并设置一个异常。" |
| 413 | + |
| 414 | +#: ../../c-api/bytes.rst:237 |
| 415 | +msgid "*unicode* and *recode_encoding* are now unused." |
| 416 | +msgstr "*unicode* 和 *recode_encoding* ���在未被使用。" |
| 417 | + |
362 | 418 | #: ../../c-api/bytes.rst:11 |
363 | 419 | msgid "object" |
364 | 420 | msgstr "object -- 对象" |
|
0 commit comments