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

Skip to content

Commit bd9b2b5

Browse files
[po] auto sync
1 parent b948915 commit bd9b2b5

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

library/os.po

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3700,30 +3700,34 @@ msgstr "设置文件 *path* 的访问时间和修改时间。"
37003700
msgid ""
37013701
":func:`utime` takes two optional parameters, *times* and *ns*. These specify"
37023702
" the times set on *path* and are used as follows:"
3703-
msgstr ""
3703+
msgstr ":func:`utime` 有 *times* 和 *ns* 两个可选参数,它们指定了设置给 *path* 的时间,用法如下:"
37043704

37053705
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2889
37063706
msgid ""
37073707
"If *ns* is specified, it must be a 2-tuple of the form ``(atime_ns, "
37083708
"mtime_ns)`` where each member is an int expressing nanoseconds."
3709-
msgstr ""
3709+
msgstr "如果指定 *ns*,它必须是一个 ``(atime_ns, mtime_ns)`` 形式的二元组,其中每个成员都是一个表示纳秒的整数。"
37103710

37113711
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2892
37123712
msgid ""
37133713
"If *times* is not ``None``, it must be a 2-tuple of the form ``(atime, "
37143714
"mtime)`` where each member is an int or float expressing seconds."
37153715
msgstr ""
3716+
"如果 *times* 不为 ``None``,则它必须是 ``(atime, mtime)`` 形式的二元组,其中每个成员都是一个表示秒的 int 或 "
3717+
"float。"
37163718

37173719
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2895
37183720
msgid ""
37193721
"If *times* is ``None`` and *ns* is unspecified, this is equivalent to "
37203722
"specifying ``ns=(atime_ns, mtime_ns)`` where both times are the current "
37213723
"time."
37223724
msgstr ""
3725+
"如果 *times* 为 ``None`` 且未指定 *ns*,则相当于指定 ``ns=(atime_ns, "
3726+
"mtime_ns)``,其中两个时间均为当前时间。"
37233727

37243728
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2899
37253729
msgid "It is an error to specify tuples for both *times* and *ns*."
3726-
msgstr ""
3730+
msgstr "同时为 *times* 和 *ns* 指定元组会出错。"
37273731

37283732
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2901
37293733
msgid ""
@@ -3734,12 +3738,15 @@ msgid ""
37343738
"*st_mtime_ns* fields from the :func:`os.stat` result object with the *ns* "
37353739
"parameter to `utime`."
37363740
msgstr ""
3741+
"注意,根据操作系统记录访问时间和修改时间的分辨率,后续的 :func:`~os.stat` 调用可能不会返回此处设置的确切时间。请参阅 "
3742+
":func:`~os.stat`。保留精确时间的最佳方法是使用 :func:`os.stat` 结果对象中的 *st_atime_ns* 和 "
3743+
"*st_mtime_ns* 字段,并将 *ns* 参数设置为 `utime`。"
37373744

37383745
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2912
37393746
msgid ""
37403747
"Added support for specifying *path* as an open file descriptor, and the "
37413748
"*dir_fd*, *follow_symlinks*, and *ns* parameters."
3742-
msgstr ""
3749+
msgstr "新增支持将 *path* 参数指定为打开的文件描述符,以及支持 *dir_fd*、*follow_symlinks* 和 *ns* 参数。"
37433750

37443751
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2926
37453752
msgid ""
@@ -3748,6 +3755,8 @@ msgid ""
37483755
"(including *top* itself), it yields a 3-tuple ``(dirpath, dirnames, "
37493756
"filenames)``."
37503757
msgstr ""
3758+
"生成目录树中的文件名,方式是按上->下或下->上顺序浏览目录树。对于以 *top* 为根的目录树中的每个目录(包括 *top* "
3759+
"本身),它都会生成一个三元组 ``(dirpath, dirnames, filenames)``。"
37513760

37523761
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:2931
37533762
msgid ""

0 commit comments

Comments
 (0)