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

Skip to content

Commit 5833863

Browse files
[po] auto sync
1 parent f649db6 commit 5833863

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

library/os.po

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,18 +1101,21 @@ msgid ""
11011101
"of the file. Return the new cursor position in bytes, starting from the "
11021102
"beginning."
11031103
msgstr ""
1104+
"将文件描述符 *fd* 的当前位置设置为 *pos*,位置的计算方式 *how* 如下:设置为 :const:`SEEK_SET` 或 ``0`` "
1105+
"表示从文件开头计算,设置为 :const:`SEEK_CUR` 或 ``1`` 表示从文件当前位置计算,设置为 :const:`SEEK_END` 或 "
1106+
"``2`` 表示文件末尾计算。返回新指针位置,这个位置是从文件开头计算的,单位是字节。"
11041107

11051108
#: ../../library/os.rst:918
11061109
msgid ""
11071110
"Parameters to the :func:`lseek` function. Their values are 0, 1, and 2, "
11081111
"respectively."
1109-
msgstr ""
1112+
msgstr ":func:`lseek` 函数的参数,它们的值分别为 0、1 和 2。"
11101113

11111114
#: ../../library/os.rst:921
11121115
msgid ""
11131116
"Some operating systems could support additional values, like "
11141117
":data:`os.SEEK_HOLE` or :data:`os.SEEK_DATA`."
1115-
msgstr ""
1118+
msgstr "某些操作系统可能支持其他值,例如 :data:`os.SEEK_HOLE` 或 :data:`os.SEEK_DATA`。"
11161119

11171120
#: ../../library/os.rst:928
11181121
msgid ""
@@ -1121,6 +1124,8 @@ msgid ""
11211124
"value is first masked out. Return the file descriptor for the newly opened "
11221125
"file. The new file descriptor is :ref:`non-inheritable <fd_inheritance>`."
11231126
msgstr ""
1127+
"打开文件 *path*,根据 *flags* 设置各种标志位,并根据 *mode* 设置其权限模式。当计算 *mode* 时,会首先根据当前 umask"
1128+
" 值将部分权限去除。本方法返回新文件的描述符。新的文件描述符是 :ref:`不可继承 <fd_inheritance>` 的。"
11241129

11251130
#: ../../library/os.rst:933
11261131
msgid ""
@@ -1129,6 +1134,9 @@ msgid ""
11291134
" are defined in the :mod:`os` module. In particular, on Windows adding "
11301135
":const:`O_BINARY` is needed to open files in binary mode."
11311136
msgstr ""
1137+
"有关 flag 和 mode 取值的说明,请参见 C 运行时文档。标志位常量(如 :const:`O_RDONLY` 和 "
1138+
":const:`O_WRONLY`)在 :mod:`os` 模块中定义。特别地,在 Windows 上需要添加 :const:`O_BINARY` "
1139+
"才能以二进制模式打开文件。"
11321140

11331141
#: ../../library/os.rst:938
11341142
msgid ""
@@ -1649,13 +1657,13 @@ msgstr ""
16491657

16501658
#: ../../library/os.rst:1477
16511659
msgid "Files and Directories"
1652-
msgstr ""
1660+
msgstr "文件和目录"
16531661

16541662
#: ../../library/os.rst:1479
16551663
msgid ""
16561664
"On some Unix platforms, many of these functions support one or more of these"
16571665
" features:"
1658-
msgstr ""
1666+
msgstr "在某些 Unix 平台上,许多函数支持以下一项或多项功能:"
16591667

16601668
#: ../../library/os.rst:1484
16611669
msgid ""

0 commit comments

Comments
 (0)