88# sunsol s <[email protected] >, 201899# Steve Ni <[email protected] >, 20181010# Meng Du <[email protected] >, 201911- # yuan chen <[email protected] >, 20191211# Freesand Leo <[email protected] >, 20191312# Shengjing Zhu <[email protected] >, 201913+ # Trim21 <[email protected] >, 201914+ # Yuan Chen <[email protected] >, 20191415#
1516#, fuzzy
1617msgid ""
@@ -19,7 +20,7 @@ msgstr ""
1920"Report-Msgid-Bugs-To : \n "
2021"POT-Creation-Date : 2019-01-01 10:14+0900\n "
2122"PO-Revision-Date : 2017-02-16 23:20+0000\n "
22- "
Last-Translator :
Shengjing Zhu <[email protected] >, 2019\n"
23+ "
Last-Translator :
Yuan Chen <[email protected] >, 2019\n"
2324"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2425"MIME-Version : 1.0\n "
2526"Content-Type : text/plain; charset=UTF-8\n "
@@ -277,7 +278,7 @@ msgid ""
277278"one of the :meth:`pop` or :meth:`clear` methods is called."
278279msgstr ""
279280"如果平台支持 :func:`unsetenv` 函数,你可以通过删除映射中元素的方式来删除对应的环境变量。当一个元素被从 ``os.environ`` "
280- "删除时,以及 :meth:`pop` 或 :meth:`clear` 被调用时,:func:`unsetenv` 会被自动调用。"
281+ "删除时,以及 :meth:`pop` 或 :meth:`clear` 被调用时, :func:`unsetenv` 会被自动调用。"
281282
282283#: ../../library/os.rst:144
283284msgid ""
@@ -297,39 +298,43 @@ msgstr "只有在 :data:`supports_bytes_environ` 为 True 的时候 :data:`envir
297298
298299#: ../../library/os.rst:160
299300msgid "These functions are described in :ref:`os-file-dir`."
300- msgstr ""
301+ msgstr "以上函数请参阅 :ref:`os-file-dir` 。 "
301302
302303#: ../../library/os.rst:165
303304msgid ""
304305"Encode :term:`path-like <path-like object>` *filename* to the filesystem "
305306"encoding with ``'surrogateescape'`` error handler, or ``'strict'`` on "
306307"Windows; return :class:`bytes` unchanged."
307308msgstr ""
309+ "编码 :term:`路径类 <path-like object>` *文件名* 为文件系统接受的形式,使用 ``'surrogateescape'`` "
310+ "代理转义编码错误处理器,在Windows系统上会使用 ``'strict'`` ;返回 :class:`bytes` 字节类型不变。"
308311
309312#: ../../library/os.rst:169
310313msgid ":func:`fsdecode` is the reverse function."
311- msgstr ""
314+ msgstr ":func:`fsdecode` 是此函数的逆向函数。 "
312315
313316#: ../../library/os.rst:173 ../../library/os.rst:188
314317msgid ""
315318"Support added to accept objects implementing the :class:`os.PathLike` "
316319"interface."
317- msgstr ""
320+ msgstr "增加对实现了 :class:`os.PathLike` 接口的对象的支持。 "
318321
319322#: ../../library/os.rst:180
320323msgid ""
321324"Decode the :term:`path-like <path-like object>` *filename* from the "
322325"filesystem encoding with ``'surrogateescape'`` error handler, or "
323326"``'strict'`` on Windows; return :class:`str` unchanged."
324327msgstr ""
328+ "从文件系统编码方式解码为 :term:`路径类 <path-like object>` 文件名,使用 ``'surrogateescape'`` "
329+ "代理转义编码错误处理器,在Windows系统上会使用 ``'strict'`` ;返回 :class:`str` 字符串不变。"
325330
326331#: ../../library/os.rst:184
327332msgid ":func:`fsencode` is the reverse function."
328- msgstr ""
333+ msgstr ":func:`fsencode` 是此函数的逆向函数。 "
329334
330335#: ../../library/os.rst:195
331336msgid "Return the file system representation of the path."
332- msgstr ""
337+ msgstr "返回路径的文件系统表示。 "
333338
334339#: ../../library/os.rst:197
335340msgid ""
@@ -338,22 +343,27 @@ msgid ""
338343"returned as long as it is a :class:`str` or :class:`bytes` object. In all "
339344"other cases, :exc:`TypeError` is raised."
340345msgstr ""
346+ "如果传入的是 :class:`str` 或 :class:`bytes` 类型的字符串,将原样返回。否则 "
347+ ":meth:`~os.PathLike.__fspath__` 将被调用,如果得到的是一个 :class:`str` 或 :class:`bytes` "
348+ "类型的对象,那就返回这个值。其他所有情况则会抛出 :exc:`TypeError` 异常。"
341349
342350#: ../../library/os.rst:207
343351msgid ""
344352"An :term:`abstract base class` for objects representing a file system path, "
345353"e.g. :class:`pathlib.PurePath`."
346354msgstr ""
355+ "描述表示一个文件系统路径的 :term:`abstract base class` ,如 :class:`pathlib.PurePath` 。"
347356
348357#: ../../library/os.rst:214
349358msgid "Return the file system path representation of the object."
350- msgstr ""
359+ msgstr "返回当前对象的文件系统表示。 "
351360
352361#: ../../library/os.rst:216
353362msgid ""
354363"The method should only return a :class:`str` or :class:`bytes` object, with "
355364"the preference being for :class:`str`."
356365msgstr ""
366+ "这个方法只应该返回一个 :class:`str` 字符串或 :class:`bytes` 字节串,请优先选择 :class:`str` 字符串。"
357367
358368#: ../../library/os.rst:222
359369msgid ""
0 commit comments