@@ -694,11 +694,11 @@ msgstr "使用输出流的示例::"
694694
695695#: ../../library/test.rst:548
696696msgid "Example use with input stream::"
697- msgstr ""
697+ msgstr "使用输入流的示例:: "
698698
699699#: ../../library/test.rst:560
700700msgid "A context manager that temporary disables :mod:`faulthandler`."
701- msgstr ""
701+ msgstr "临时禁用 :mod:`faulthandler` 的上下文管理器。 "
702702
703703#: ../../library/test.rst:565
704704msgid ""
@@ -707,16 +707,18 @@ msgid ""
707707"that ``__del__`` methods may be called later than expected and weakrefs may "
708708"remain alive for longer than expected."
709709msgstr ""
710+ "强制收集尽可能多的对象。 这是有必要的因为垃圾回收器并不能保证及时回收资源。 这意味着 ``__del__`` "
711+ "方法的调用可能会晚于预期而弱引用的存活长于预期。"
710712
711713#: ../../library/test.rst:573
712714msgid ""
713715"A context manager that disables the garbage collector on entry. On exit, the"
714716" garbage collector is restored to its prior state."
715- msgstr ""
717+ msgstr "在进入时禁用垃圾回收器的上下文管理器。 在退出时,垃圾回收器将恢复到先前状态。 "
716718
717719#: ../../library/test.rst:579
718720msgid "Context manager to swap out an attribute with a new object."
719- msgstr ""
721+ msgstr "上下文管理器用一个新对象来交换一个属性。 "
720722
721723#: ../../library/test.rst:581 ../../library/test.rst:599
722724#: ../../library/test.rst:819 ../../library/test.rst:1282
@@ -729,30 +731,36 @@ msgid ""
729731"restoring the old value at the end of the block. If ``attr`` doesn't exist "
730732"on ``obj``, it will be created and then deleted at the end of the block."
731733msgstr ""
734+ "这将把 ``obj.attr`` 设为 5 并在 ``with`` 语句块内保持,在语句块结束时恢复旧值。 如果 ``attr`` 不存在于 "
735+ "``obj`` 中,它将被创建并在语句块结束时被删除。"
732736
733737#: ../../library/test.rst:591 ../../library/test.rst:609
734738msgid ""
735739"The old value (or ``None`` if it doesn't exist) will be assigned to the "
736740"target of the \" as\" clause, if there is one."
737- msgstr ""
741+ msgstr "旧值 (或者如果不存在旧值则为 ``None``) 将被赋给 \" as \" 子句的目标,如果存在子句的话。 "
738742
739743#: ../../library/test.rst:597
740744msgid "Context manager to swap out an item with a new object."
741- msgstr ""
745+ msgstr "上下文件管理器用一个新对象来交换一个条目。 "
742746
743747#: ../../library/test.rst:604
744748msgid ""
745749"This will set ``obj[\" item\" ]`` to 5 for the duration of the ``with`` block,"
746750" restoring the old value at the end of the block. If ``item`` doesn't exist "
747751"on ``obj``, it will be created and then deleted at the end of the block."
748752msgstr ""
753+ "这将把 ``obj[\" item\" ]`` 设为 5 并在 ``with`` 语句块内保持,在语句块结束时恢复旧值。 如果 ``item`` 不存在于 "
754+ "``obj`` 中,它将被创建并在语句块结束时被删除。"
749755
750756#: ../../library/test.rst:615
751757msgid ""
752758"Print a warning into :data:`sys.__stderr__`. Format the message as: "
753759"``f\" Warning -- {msg}\" ``. If *msg* is made of multiple lines, add "
754760"``\" Warning -- \" `` prefix to each line."
755761msgstr ""
762+ "打印一个警告到 :data:`sys.__stderr__`。 将消息格式化为: ``f\" Warning -- {msg}\" ``。 如果 *msg*"
763+ " 包含多行,则为每行添加 ``\" Warning -- \" `` 前缀。"
756764
757765#: ../../library/test.rst:624
758766msgid ""
0 commit comments