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

Skip to content

Commit ca0f42e

Browse files
[po] auto sync
1 parent 6f47082 commit ca0f42e

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

library/pydoc.po

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#
66
# Translators:
77
# Meng Du <[email protected]>, 2020
8+
# Freesand Leo <[email protected]>, 2020
89
#
910
#, fuzzy
1011
msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314
"Report-Msgid-Bugs-To: \n"
1415
"POT-Creation-Date: 2020-02-09 12:40+0000\n"
1516
"PO-Revision-Date: 2017-02-16 23:23+0000\n"
16-
"Last-Translator: Meng Du <alphanow@gmail.com>, 2020\n"
17+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2020\n"
1718
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -47,6 +48,9 @@ msgid ""
4748
"the source file, or at the top of the module (see "
4849
":func:`inspect.getcomments`)."
4950
msgstr ""
51+
"对于模块、类、函数和方法,显示的文档内容取自文档字符串(即 :attr:`__doc__` 属性),并会递归地从其带文档的成员中获取。 "
52+
"如果没有文档字符串,:mod:`pydoc` 会尝试从类、函数或方法定义上方,或是模块顶部的注释行段落获取 (参见 "
53+
":func:`inspect.getcomments`)."
5054

5155
#: ../../library/pydoc.rst:30
5256
msgid ""
@@ -56,6 +60,8 @@ msgid ""
5660
"be viewed from outside the Python interpreter by running :program:`pydoc` as"
5761
" a script at the operating system's command prompt. For example, running ::"
5862
msgstr ""
63+
"内置函数 :func:`help` 会发起调用交互式解释器的在线帮助系统,该系统使用 :mod:`pydoc` 在终端上生成文本形式的文档内容。 "
64+
"同样的文本文档也可以在 Python 解释器以外通过在操作系统的命令提示符下以脚本方式运行 :program:`pydoc` 来查看。 例如,运行 ::"
5965

6066
#: ../../library/pydoc.rst:38
6167
msgid ""
@@ -68,6 +74,10 @@ msgid ""
6874
"system, such as a slash in Unix), and refers to an existing Python source "
6975
"file, then documentation is produced for that file."
7076
msgstr ""
77+
"在终端提示符下将通过 :mod:`sys` 模块显示文档内容,其样式类似于 Unix :program:`man` 命令所显示的指南页面。 "
78+
":program:`pydoc` 的参数可以为函数、模块、包,或带点号的对模块中的类、方法或函数以及包中的模块的引用。 如果传给 "
79+
":program:`pydoc` 的参数像是一个路径(即包含所在操作系统的路径分隔符,例如 Unix 的正斜杠),并且其指向一个现有的 Python "
80+
"源文件,则会为该文件生成文档内容。"
7181

7282
#: ../../library/pydoc.rst:49
7383
msgid ""
@@ -76,6 +86,8 @@ msgid ""
7686
"executed on that occasion. Use an ``if __name__ == '__main__':`` guard to "
7787
"only execute code when a file is invoked as a script and not just imported."
7888
msgstr ""
89+
"为了找到对象及其文档内容,:mod:`pydoc` 会导入文档所在的模块。 因此,任何模块层级的代码都将被执行。 请使用 ``if __name__ "
90+
"== '__main__':`` 语句来确保一个文件的特定代码仅在作为脚本被发起调用时执行而不是在被导入时执行。"
7991

8092
#: ../../library/pydoc.rst:54
8193
msgid ""

0 commit comments

Comments
 (0)