55#
66# Translators:
77# ppcfish <[email protected] >, 20198+ # Freesand Leo <[email protected] >, 201989#
910#, fuzzy
1011msgid ""
@@ -13,7 +14,7 @@ msgstr ""
1314"Report-Msgid-Bugs-To : \n "
1415"POT-Creation-Date : 2019-04-13 11:09+0900\n "
1516"PO-Revision-Date : 2017-02-16 17:43+0000\n "
16- "Last-Translator : ppcfish <ppcfish@gmail .com>, 2019\n "
17+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2019\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 "
@@ -99,7 +100,7 @@ msgstr ""
99100
100101#: ../../faq/extending.rst:61
101102msgid "How can I execute arbitrary Python statements from C?"
102- msgstr "如何从C执行任意Python语句 ?"
103+ msgstr "如何在 C 中执行任意 Python 语句 ?"
103104
104105#: ../../faq/extending.rst:63
105106msgid ""
@@ -110,17 +111,23 @@ msgid ""
110111":c:func:`PyRun_String`; see the source for :c:func:`PyRun_SimpleString` in "
111112"``Python/pythonrun.c``."
112113msgstr ""
114+ "执行此操作的最高层级函数为 :c:func:`PyRun_SimpleString`,它接受单个字符串参数用于在模块 ``__main__`` "
115+ "的上下文中执行并在成功时返回 ``0`` 而在发生异常 (包括 :exc:`SyntaxError`) 时返回 ``-1``。 "
116+ "如果你想要更多可控性,可以使用 :c:func:`PyRun_String`;请在 ``Python/pythonrun.c`` 中查看 "
117+ ":c:func:`PyRun_SimpleString` 的源码。"
113118
114119#: ../../faq/extending.rst:72
115120msgid "How can I evaluate an arbitrary Python expression from C?"
116- msgstr "如何从C中评估任意Python表达式 ?"
121+ msgstr "如何在 C 中对任意 Python 表达式求值 ?"
117122
118123#: ../../faq/extending.rst:74
119124msgid ""
120125"Call the function :c:func:`PyRun_String` from the previous question with the"
121126" start symbol :c:data:`Py_eval_input`; it parses an expression, evaluates it"
122127" and returns its value."
123128msgstr ""
129+ "可以调用前一问题中介绍的函数 :c:func:`PyRun_String` 并附带起始标记符 "
130+ ":c:data:`Py_eval_input`;它会解析表达式,对其求值并返回结果值。"
124131
125132#: ../../faq/extending.rst:80
126133msgid "How do I extract C values from a Python object?"
0 commit comments