8000 [po] auto sync · python/python-docs-zh-cn@4b9e084 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b9e084

Browse files
[po] auto sync
1 parent dcc4c03 commit 4b9e084

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "91.73%", "updated_at": "2024-03-20T07:10:00Z"}
1+
{"translation": "91.75%", "updated_at": "2024-03-21T01:29:33Z"}

whatsnew/2.7.po

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,8 @@ msgid ""
522522
"compatibility with earlier versions of Python, use :mod:`argparse` instead "
523523
"of :mod:`optparse`."
524524
msgstr ""
525+
"简而言之,如果你是在编写新脚本并且不需要担心与 Python 较早版本的兼容性,请使用 :mod:`argparse` 而不是 "
526+
":mod:`optparse`。"
525527

526528
#: ../../whatsnew/2.7.rst:370
527529
msgid "Here's an example::"
@@ -531,13 +533,13 @@ msgstr "以下是为示例代码::"
531533
msgid ""
532534
"Unless you override it, :option:`!-h` and :option:`!--help` switches are "
533535
"automatically added, and produce neatly formatted output::"
534-
msgstr ""
536+
msgstr "除非你覆盖它,否则会自动添加 :option:`!-h` 和 :option:`!--help` 开关,并产生格式化良好的输出::"
535537

536538
#: ../../whatsnew/2.7.rst:410
537539
msgid ""
538540
"As with :mod:`optparse`, the command-line switches and arguments are "
539541
"returned as an object with attributes named by the *dest* parameters::"
540-
msgstr ""
542+
msgstr "与 :mod:`optparse` 一样,命令行开关和参数将返回为一个具有通过 *dest* 形参所指定的属性的对象::"
541543

542544
#: ../../whatsnew/2.7.rst:425
543545
msgid ""
@@ -666,6 +668,8 @@ msgid ""
666668
":meth:`~dict.items` are different in Python 3.x. They return an object "
667669
"called a :dfn:`view` instead of a fully materialized list."
668670
msgstr ""
671+
"字典方法 :meth:`~dict.keys`, :meth:`~dict.values`, and :meth:`~dict.items` 在 "
672+
"Python 3.x 有所不同。 它们将返回名为 :dfn:`view` 的对象而不是完整的列表。"
669673

670674
#: ../../whatsnew/2.7.rst:554
671675
msgid ""
@@ -681,19 +685,19 @@ msgid ""
681685
"Views can be iterated over, but the key and item views also behave like "
682686
"sets. The ``&`` operator performs intersection, and ``|`` performs a "
683687
"union::"
684-
msgstr ""
688+
msgstr "视图可以被迭代,但键和条目视图的行为也很像是集合。 ``&`` 运算符执行交集运算,``|`` 执行并集运算::"
685689

686690
#: ../../whatsnew/2.7.rst:579
687691
msgid ""
688692
"The view keeps track of the dictionary and its contents change as the "
689693
"dictionary is modified::"
690-
msgstr ""
694+
msgstr "视图会追踪字典及字典被修改时的内容变化::"
691695

692696
#: ../../whatsnew/2.7.rst:589
693697
msgid ""
694698
"However, note that you can't add or remove keys while you're iterating over "
695699
"the view::"
696-
msgstr ""
700+
msgstr "但是,请注意在对视图进行迭代时你是不能添加或移除键的::"
697701

698702
#: ../../whatsnew/2.7.rst:599
699703
msgid ""

0 commit comments

Comments
 (0)
0