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

Skip to content

Commit b2299c6

Browse files
[po] auto sync
1 parent 380d976 commit b2299c6

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

library/os.po

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4186,6 +4186,8 @@ msgid ""
41864186
"is preferable to using these functions. Check especially the :ref"
41874187
":`subprocess-replacements` section.)"
41884188
msgstr ""
4189+
"(注意,:mod:`subprocess` 模块提供了更强大的工具来生成新进程并跟踪执行结果,使用该模块比使用这些函数更好。尤其应当检查 :ref"
4190+
":`subprocess-replacements` 部分。)"
41894191

41904192
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3447
41914193
msgid ""
@@ -4195,6 +4197,9 @@ msgid ""
41954197
"killed the process. On Windows, the process id will actually be the process"
41964198
" handle, so can be used with the :func:`waitpid` function."
41974199
msgstr ""
4200+
"*mode* 为 :const:`P_NOWAIT` 时,本函数返回新进程的进程号。*mode* 为 :const:`P_WAIT` "
4201+
"时,如果进程正常退出,返回退出代码,如果被杀死,返回 ``-signal``,其中 *signal* 是杀死进程的信号。在 Windows "
4202+
"上,进程号实际上是进程句柄,因此可以与 :func:`waitpid` 函数一起使用。"
41984203

41994204
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3453
42004205
msgid ""
@@ -4223,6 +4228,11 @@ msgid ""
42234228
"not use the :envvar:`PATH` variable to locate the executable; *path* must "
42244229
"contain an appropriate absolute or relative path."
42254230
msgstr ""
4231+
"结尾包含第二个 \"p\" 的变体(:func:`spawnlp`、:func:`spawnlpe`、:func:`spawnvp` 和 "
4232+
":func:`spawnvpe`)将使用 :envvar:`PATH` 环境变量来查找程序 *file*。当环境被替换时(使用下一段讨论的 "
4233+
":func:`spawn\\*e <spawnl>` 变体之一),:envvar:`PATH` 变量将来自于新环境。其他变体 "
4234+
":func:`spawnl`、:func:`spawnle`、:func:`spawnv` 和 :func:`spawnve` 不使用 "
4235+
":envvar:`PATH` 变量来查找程序,因此 *path* 必须包含正确的绝对或相对路径。"
42264236

42274237
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3472
42284238
msgid ""
@@ -4236,12 +4246,16 @@ msgid ""
42364246
"keys or values will cause the function to fail, with a return value of "
42374247
"``127``."
42384248
msgstr ""
4249+
"对于 :func:`spawnle`、:func:`spawnlpe`、:func:`spawnve` 和 :func:`spawnvpe` (都以 "
4250+
"\"e\" 结尾),*env* 参数是一个映射,用于定义新进程的环境变量(代替当前进程的环境变量)。而函数 "
4251+
":func:`spawnl`、:func:`spawnlp`、:func:`spawnv` 和 :func:`spawnvp` "
4252+
"会将当前进程的环境变量过继给新进程。注意,*env* 字典中的键和值必须是字符串。无效的键或值将导致函数出错,返回值为 ``127``。"
42394253

42404254
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3481
42414255
msgid ""
42424256
"As an example, the following calls to :func:`spawnlp` and :func:`spawnvpe` "
42434257
"are equivalent::"
4244-
msgstr ""
4258+
msgstr "例如,以下对 :func:`spawnlp` 和 :func:`spawnvpe` 的调用是等效的::"
42454259

42464260
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3494
42474261
msgid ""
@@ -4250,6 +4264,10 @@ msgid ""
42504264
"Windows. :func:`spawnle` and :func:`spawnve` are not thread-safe on "
42514265
"Windows; we advise you to use the :mod:`subprocess` module instead."
42524266
msgstr ""
4267+
":ref:`可用性 <availability>`: Unix, "
4268+
"Windows。:func:`spawnlp`、:func:`spawnlpe`、:func:`spawnvp` 和 :func:`spawnvpe` "
4269+
"在 Windows 上不可用。:func:`spawnle` 和 :func:`spawnve` 在 Windows 上不是线程安全的,建议使用 "
4270+
":mod:`subprocess` 模块替代。"
42534271

42544272
#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3502
42554273
msgid ""

0 commit comments

Comments
 (0)