@@ -522,6 +522,8 @@ msgid ""
522
522
"compatibility with earlier versions of Python, use :mod:`argparse` instead "
523
523
"of :mod:`optparse`."
524
524
msgstr ""
525
+ "简而言之,如果你是在编写新脚本并且不需要担心与 Python 较早版本的兼容性,请使用 :mod:`argparse` 而不是 "
526
+ ":mod:`optparse`。"
525
527
526
528
#: ../../whatsnew/2.7.rst:370
527
529
msgid "Here's an example::"
@@ -531,13 +533,13 @@ msgstr "以下是为示例代码::"
531
533
msgid ""
532
534
"Unless you override it, :option:`!-h` and :option:`!--help` switches are "
533
535
"automatically added, and produce neatly formatted output::"
534
- msgstr ""
536
+ msgstr "除非你覆盖它,否则会自动添加 :option:`!-h` 和 :option:`!--help` 开关,并产生格式化良好的输出:: "
535
537
536
538
#: ../../whatsnew/2.7.rst:410
537
539
msgid ""
538
540
"As with :mod:`optparse`, the command-line switches and arguments are "
539
541
"returned as an object with attributes named by the *dest* parameters::"
540
- msgstr ""
542
+ msgstr "与 :mod:`optparse` 一样,命令行开关和参数将返回为一个具有通过 *dest* 形参所指定的属性的对象:: "
541
543
542
544
#: ../../whatsnew/2.7.rst:425
543
545
msgid ""
@@ -666,6 +668,8 @@ msgid ""
666
668
":meth:`~dict.items` are different in Python 3.x. They return an object "
667
669
"called a :dfn:`view` instead of a fully materialized list."
668
670
msgstr ""
671
+ "字典方法 :meth:`~dict.keys`, :meth:`~dict.values`, and :meth:`~dict.items` 在 "
672
+ "Python 3.x 有所不同。 它们将返回名为 :dfn:`view` 的对象而不是完整的列表。"
669
673
670
674
#: ../../whatsnew/2.7.rst:554
671
675
msgid ""
@@ -681,19 +685,19 @@ msgid ""
681
685
"Views can be iterated over, but the key and item views also behave like "
682
686
"sets. The ``&`` operator performs intersection, and ``|`` performs a "
683
687
"union::"
684
- msgstr ""
688
+ msgstr "视图可以被迭代,但键和条目视图的行为也很像是集合。 ``&`` 运算符执行交集运算,``|`` 执行并集运算:: "
685
689
686
690
#: ../../whatsnew/2.7.rst:579
687
691
msgid ""
688
692
"The view keeps track of the dictionary and its contents change as the "
689
693
"dictionary is modified::"
690
- msgstr ""
694
+ msgstr "视图会追踪字典及字典被修改时的内容变化:: "
691
695
692
696
#: ../../whatsnew/2.7.rst:589
693
697
msgid ""
694
698
"However, note that you can't add or remove keys while you're iterating over "
695
699
"the view::"
696
- msgstr ""
700
+ msgstr "但是,请注意在对视图进行迭代时你是不能添加或移除键的:: "
697
701
698
702
#: ../../whatsnew/2.7.rst:599
699
703
msgid ""
0 commit comments