Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit675de9c

Browse files
[po] auto sync
1 parentf0946af commit675de9c

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

‎.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation":"81.42%","updated_at":"2025-04-23T02:23:53Z"}
1+
{"translation":"81.43%","updated_at":"2025-04-23T14:55:54Z"}

‎whatsnew/3.0.po

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@ msgid ""
411411
"The mutable API is based on :class:`collections.MutableSequence "
412412
"<collections.abc.MutableSequence>`."
413413
msgstr""
414+
"与 :class:`str` 一样,:class:`bytes` 类型是不可变的。 还有一个单独的 *可变* 类型用于保存带缓冲的二进制数据,即 "
415+
":class:`bytearray`。 几乎所有接受 :class:`bytes` 的 API 也都接受 :class:`bytearray`。 "
416+
"这个可变 API 是基于 :class:`collections.MutableSequence "
417+
"<collections.abc.MutableSequence>`。"
414418

415419
#:../../whatsnew/3.0.rst:274
416420
msgid""
@@ -433,6 +437,9 @@ msgid ""
433437
" tool (see below) replaces every occurrence of :class:`!basestring` with "
434438
":class:`str`."
435439
msgstr""
440+
"内置的 :class:`!basestring` 抽象类型已被移除。 请改用 :class:`str`。 :class:`str` 和 "
441+
":class:`bytes` 类型在功能上没有足够的共通性因此不需要有共享的基类。 ``2to3`` 工具(见下文)会将所有 "
442+
":class:`!basestring` 都替换为 :class:`str`。"
436443

437444
#:../../whatsnew/3.0.rst:287
438445
msgid""
@@ -587,14 +594,16 @@ msgstr ""
587594

588595
#:../../whatsnew/3.0.rst:385
589596
msgid"This sets *a* to ``0``, *b* to ``4``, and *rest* to ``[1, 2, 3]``."
590-
msgstr""
597+
msgstr"这会将 *a* 设为 ``0``,*b* 设为 ``4``,而将 *rest* 设为 ``[1, 2, 3]``。"
591598

592599
#:../../whatsnew/3.0.rst:387
593600
msgid""
594601
"Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the same thing"
595602
" as ``dict(stuff)`` but is more flexible. (This is :pep:`274` vindicated. "
596603
":-)"
597604
msgstr""
605+
"新增字典推导式: ``{k: v for k, v in stuff}`` 的含义与 ``dict(stuff)`` 相同但是更为灵活。 "
606+
"(对此特性的解释见 :pep:`274`。 :-)"
598607

599608
#:../../whatsnew/3.0.rst:391
600609
msgid""
@@ -603,24 +612,26 @@ msgid ""
603612
"``{x for x in stuff}`` means the same thing as ``set(stuff)`` but is more "
604613
"flexible."
605614
msgstr""
615+
"新增集合字面值,例如 ``{1, 2}``。 请注意 ``{}`` 是空字典;要用 ``set()`` 表示空集合。 集合推导式也受到支持;例如 "
616+
"``{x for x in stuff}`` 的含义与 ``set(stuff)`` 相同但是更为灵活。"
606617

607618
#:../../whatsnew/3.0.rst:396
608619
msgid""
609620
"New octal literals, e.g. ``0o720`` (already in 2.6). The old octal literals"
610621
" (``0720``) are gone."
611-
msgstr""
622+
msgstr"新增八进制字面值,例如 ``0o720`` (已存在于 2.6 中)。 旧的八进制字面值 (``0720``) 已不复存在。"
612623

613624
#:../../whatsnew/3.0.rst:399
614625
msgid""
615626
"New binary literals, e.g. ``0b1010`` (already in 2.6), and there is a new "
616627
"corresponding built-in function, :func:`bin`."
617-
msgstr""
628+
msgstr"新增二进制字面值,例如 ``0b1010`` (已存在于 2.6 中),还有对应的新增内置函数 :func:`bin`。"
618629

619630
#:../../whatsnew/3.0.rst:402
620631
msgid""
621632
"Bytes literals are introduced with a leading ``b`` or ``B``, and there is a "
622633
"new corresponding built-in function, :func:`bytes`."
623-
msgstr""
634+
msgstr"引入了带有 ``b`` 或 ``B`` 前缀的字节串字面值,还有对应的新增内置函数 :func:`bytes`。"
624635

625636
#:../../whatsnew/3.0.rst:406
626637
msgid"Changed Syntax"
@@ -664,6 +675,9 @@ msgid ""
664675
" __metaclass__ = M\n"
665676
" ..."
666677
msgstr""
678+
"class C:\n"
679+
" __metaclass__ = M\n"
680+
" ..."
667681

668682
#:../../whatsnew/3.0.rst:426
669683
msgid"you must now use::"
@@ -674,6 +688,8 @@ msgid ""
674688
"class C(metaclass=M):\n"
675689
" ..."
676690
msgstr""
691+
"class C(metaclass=M):\n"
692+
" ..."
677693

678694
#:../../whatsnew/3.0.rst:431
679695
msgid""

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp