@@ -1121,8 +1121,8 @@ msgid ""
11211121"most *length* bytes in size. As of Python 3.3, this is equivalent to "
11221122"``os.truncate(fd, length)``."
11231123msgstr ""
1124- "将文件描述符 *fd* 指向的文件切分开 ,以使其最大为 *length* 字节。从 Python 3.3 开始,它等效于 "
1125- "``os.truncate(fd, length)``。"
1124+ "截断文件描述符 *fd* 指向的文件 ,以使其最大为 *length* 字节。从 Python 3.3 开始,它等效于 ``os.truncate(fd, "
1125+ " length)``。"
11261126
11271127#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:855
11281128msgid ""
@@ -3636,6 +3636,9 @@ msgid ""
36363636"default) otherwise. On non-Windows platforms, *target_is_directory* is "
36373637"ignored."
36383638msgstr ""
3639+ "在 Windows 上,符号链接可以表示文件或目录两种类型,并且不会动态改变类型。如果目标存在,则新建链接的类型将与目标一致。否则,如果 "
3640+ "*target_is_directory* 为 ``True``,则符号链接将创建为目录链接,为 ``False`` (默认)将创建为文件链接。在非 "
3641+ "Windows 平台上,*target_is_directory* 被忽略。"
36393642
36403643#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2814
36413644msgid ""
@@ -3644,32 +3647,34 @@ msgid ""
36443647"the *SeCreateSymbolicLinkPrivilege* privilege is required, or the process "
36453648"must be run as an administrator."
36463649msgstr ""
3650+ "在 Windows 10 或更高版本上,如果启用了开发人员模式,非特权帐户可以创建符号链接。如果开发人员模式不可用/未启用,则需要 "
3651+ "*SeCreateSymbolicLinkPrivilege* 权限,或者该进程必须以管理员身份运行。"
36473652
36483653#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2820
36493654msgid ""
36503655":exc:`OSError` is raised when the function is called by an unprivileged "
36513656"user."
3652- msgstr ""
3657+ msgstr "当本函数由非特权账户调用时,抛出 :exc:`OSError` 异常。 "
36533658
36543659#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2828
36553660msgid ""
36563661"Added the *dir_fd* argument, and now allow *target_is_directory* on non-"
36573662"Windows platforms."
3658- msgstr ""
3663+ msgstr "添加了 *dir_fd* 参数,现在在非 Windows 平台上允许 *target_is_directory* 参数。 "
36593664
36603665#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2835
36613666msgid "Added support for unelevated symlinks on Windows with Developer Mode."
3662- msgstr ""
3667+ msgstr "针对启用了开发人员模式的 Windows,添加了非特权账户创建符号链接的支持。 "
36633668
36643669#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2841
36653670msgid "Force write of everything to disk."
3666- msgstr ""
3671+ msgstr "强制将所有内容写入磁盘。 "
36673672
36683673#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2850
36693674msgid ""
36703675"Truncate the file corresponding to *path*, so that it is at most *length* "
36713676"bytes in size."
3672- msgstr ""
3677+ msgstr "截断 *path* 对应的文件,以使其最大为 *length* 字节。 "
36733678
36743679#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2856
36753680msgid ""
@@ -3684,10 +3689,12 @@ msgid ""
36843689" :func:`remove`; the ``unlink`` name is its traditional Unix name. Please "
36853690"see the documentation for :func:`remove` for further information."
36863691msgstr ""
3692+ "移除(删除)文件 *path*。该函数在语义上与 :func:`remove` 相同,``unlink`` 是其传统的 Unix 名称。请参阅 "
3693+ ":func:`remove` 的文档以获取更多信息。"
36873694
36883695#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2884
36893696msgid "Set the access and modified times of the file specified by *path*."
3690- msgstr ""
3697+ msgstr "设置文件 *path* 的访问时间和修改时间。 "
36913698
36923699#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2886
36933700msgid ""
0 commit comments