File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- {"translation" : " 89.13 %" , "updated_at" : " 2023-09-21T01:29:05Z " }
1+ {"translation" : " 89.14 %" , "updated_at" : " 2023-09-21T02:14:06Z " }
Original file line number Diff line number Diff line change @@ -920,6 +920,9 @@ msgid ""
920920"wrapped in :func:`staticmethod()` to prevent injection of a ``self`` "
921921"argument."
922922msgstr ""
923+ "该属性可在实例上设置或在子类中重载。 也可以在 ``TarFile`` 类本身上设置它以设置一个全局默认值,不过,由于它会影响 *tarfile* "
924+ "的所有使用,因此最好只在最高层级应用程序或 :mod:`站点配置 <site>` 中这样做。 要以这种方式设置全局默认值,需要用 "
925+ ":func:`staticmethod()` 包装过滤器函数以防止 ``self`` 参数的注入。"
923926
924927#: ../../library/tarfile.rst:553
925928msgid ""
@@ -1013,6 +1016,8 @@ msgid ""
10131016":meth:`~TarFile.getmember`, :meth:`~TarFile.getmembers` and "
10141017":meth:`~TarFile.gettarinfo`."
10151018msgstr ""
1019+ ":class:`TarInfo` 对象可通过 :class:`TarFile` 的方法 :meth:`~TarFile.getmember`, "
1020+ ":meth:`~TarFile.getmembers` 和 :meth:`~TarFile.gettarinfo` 返回。"
10161021
10171022#: ../../library/tarfile.rst:628
10181023msgid ""
@@ -1022,6 +1027,9 @@ msgid ""
10221027"<copy>` or call the :meth:`~TarInfo.replace` method to create a modified "
10231028"copy in one step."
10241029msgstr ""
1030+ "修改 :meth:`~!TarFile.getmember` 或 :meth:`~!TarFile.getmembers` "
1031+ "返回的对象将会影响在归档上的所有后续操作。 对于不希望如此的情况,你可以使用 :mod:`copy.copy() <copy>` 或调用 "
1032+ ":meth:`~TarInfo.replace` 方法通过一个步骤创建经修改的副本。"
10251033
10261034#: ../../library/tarfile.rst:634
10271035msgid ""
You can’t perform that action at this time.
0 commit comments