Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba21a01

Browse files
[po] auto sync
1 parent 5721703 commit ba21a01

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

library/os.po

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2806,6 +2806,8 @@ msgid ""
28062806
"``'.'``. The ``entry.is_file()`` call will generally not make an additional "
28072807
"system call::"
28082808
msgstr ""
2809+
"下面的例子演示了 :func:`scandir` 的简单用法,用来显示给定 *path* 中所有不以 ``'.'`` "
2810+
"开头的文件(不包括目录)。``entry.is_file()`` 通常不会增加一次额外的系统调用::"
28092811

28102812
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2241
28112813
msgid ""
@@ -2819,6 +2821,14 @@ msgid ""
28192821
"<https://msdn.microsoft.com/en-"
28202822
"us/library/windows/desktop/aa364428(v=vs.85).aspx>`_ functions."
28212823
msgstr ""
2824+
"在基于 Unix 的系统上,:func:`scandir` 使用系统的 `opendir() "
2825+
"<http://pubs.opengroup.org/onlinepubs/009695399/functions/opendir.html>`_ 和 "
2826+
"`readdir() "
2827+
"<http://pubs.opengroup.org/onlinepubs/009695399/functions/readdir_r.html>`_ "
2828+
"函数。在 Windows 上,它使用 Win32 `FindFirstFileW <https://msdn.microsoft.com/en-"
2829+
"us/library/windows/desktop/aa364418(v=vs.85).aspx>`_ 和 `FindNextFileW "
2830+
"<https://msdn.microsoft.com/en-"
2831+
"us/library/windows/desktop/aa364428(v=vs.85).aspx>`_ 函数。"
28222832

28232833
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2253
28242834
msgid ""
@@ -2827,20 +2837,22 @@ msgid ""
28272837
"exhausted nor explicitly closed a :exc:`ResourceWarning` will be emitted in "
28282838
"its destructor."
28292839
msgstr ""
2840+
"添加了对 :term:`上下文管理 <context manager>` 协议和 :func:`~scandir.close()` 方法的支持。如果 "
2841+
":func:`scandir` 迭代器没有迭代完毕且没有显式关闭,其析构函数将发出 :exc:`ResourceWarning` 警告。"
28302842

28312843
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2259
28322844
msgid "The function accepts a :term:`path-like object`."
2833-
msgstr ""
2845+
msgstr "本函数接受一个 :term:`类路径对象 <path-like object>`。"
28342846

28352847
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2261
28362848
msgid "Added support for :ref:`file descriptors <path_fd>` on Unix."
2837-
msgstr ""
2849+
msgstr "在 Unix 上新增支持 :ref:`指定文件描述符为参数 <path_fd>`。"
28382850

28392851
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2267
28402852
msgid ""
28412853
"Object yielded by :func:`scandir` to expose the file path and other file "
28422854
"attributes of a directory entry."
2843-
msgstr ""
2855+
msgstr "由 :func:`scandir` 生成的对象,用于显示目录内某个条目的文件路径和其他文件属性。"
28442856

28452857
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2270
28462858
msgid ""

0 commit comments

Comments
 (0)