File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4096,6 +4096,9 @@ msgid ""
40964096" function. The returned file object reads or writes text strings rather than"
40974097" bytes."
40984098msgstr ""
4099+ "打开一个管道,它通往 / 接受自命令 *cmd*。返回值是连接到管道的文件对象,根据 *mode* 是 ``'r'`` (默认)还是 ``'w'`` "
4100+ "决定该对象可以读取还是写入。*buffering* 参数与内置函数 :func:`open` "
4101+ "相应的参数含义相同。返回的文件对象只能读写文本字符串,不能是字节类型。"
40994102
41004103#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3383
41014104msgid ""
@@ -4108,13 +4111,16 @@ msgid ""
41084111"if the subprocess was killed.) On Windows systems, the return value "
41094112"contains the signed integer return code from the child process."
41104113msgstr ""
4114+ "如果子进程成功退出,则 ``close`` 方法返回 :const:`None`。如果发生错误,则返回子进程的返回码。在 POSIX "
4115+ "系统上,如果返回码为正,则它就是进程返回值左移一个字节后的值。如果返回码为负,则进程是被信号终止的,返回码取反后就是该信号。(例如,如果子进程被终止,则返回值可能是"
4116+ " ``- signal.SIGKILL``。)在 Windows 系统上,返回值包含子进程的返回码(有符号整数)。"
41114117
41124118#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3393
41134119msgid ""
41144120"This is implemented using :class:`subprocess.Popen`; see that class's "
41154121"documentation for more powerful ways to manage and communicate with "
41164122"subprocesses."
4117- msgstr ""
4123+ msgstr "本方法是使用 :class:`subprocess.Popen` 实现的,如需更强大的方法来管理和沟通子进程,请参阅该类的文档。 "
41184124
41194125#: /home/travis/build/python/cpython-doc-catalog/Doc/library/os.rst:3401
41204126msgid ""
You can’t perform that action at this time.
0 commit comments