File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -507,6 +507,9 @@ msgid ""
507507" in a tar archive several times. Each archive member is represented by a "
508508":class:`TarInfo` object, see :ref:`tarinfo-objects` for details."
509509msgstr ""
510+ ":class:`TarFile` 对象提供了一个 tar 归档的接口。 一个 tar 归档就是数据块的序列。 "
511+ "一个归档成员(被保存文件)是由一个标头块加多个数据块组成的。 一个文件可以在一个 tar 归档中多次被保存。 每个归档成员都由一个 "
512+ ":class:`TarInfo` 对象来代表,详情参见 :ref:`tarinfo-objects`。"
510513
511514#: ../../library/tarfile.rst:263
512515msgid ""
@@ -516,10 +519,12 @@ msgid ""
516519"for writing will not be finalized; only the internally used file object will"
517520" be closed. See the :ref:`tar-examples` section for a use case."
518521msgstr ""
522+ ":class:`TarFile` 对象可在 :keyword:`with` 语句中作为上下文管理器使用。 当语句块结束时它将自动被关闭。 "
523+ "请注意在发生异常事件时被打开用于写入的归档将不会被终结;只有内部使用的文件对象将被关闭。 相关用例请参见 :ref:`tar-examples`。"
519524
520525#: ../../library/tarfile.rst:269
521526msgid "Added support for the context management protocol."
522- msgstr ""
527+ msgstr "添加了对上下文管理器协议的支持。 "
523528
524529#: ../../library/tarfile.rst:274
525530msgid ""
You can’t perform that action at this time.
0 commit comments