|
6 | 6 | # Translators: |
7 | 7 | # Rafael Fontenelle <rffontenelle@gmail.com>, 2025 |
8 | 8 | # Freesand Leo <yuqinju@163.com>, 2025 |
| 9 | +# python-doc bot, 2025 |
9 | 10 | # |
10 | 11 | #,fuzzy |
11 | 12 | msgid "" |
12 | 13 | msgstr "" |
13 | 14 | "Project-Id-Version:Python 3.12\n" |
14 | 15 | "Report-Msgid-Bugs-To:\n" |
15 | | -"POT-Creation-Date:2025-07-25 16:03+0000\n" |
| 16 | +"POT-Creation-Date:2025-09-22 19:59+0000\n" |
16 | 17 | "PO-Revision-Date:2025-07-18 19:58+0000\n" |
17 | | -"Last-Translator:Freesand Leo <yuqinju@163.com>, 2025\n" |
| 18 | +"Last-Translator:python-doc bot, 2025\n" |
18 | 19 | "Language-Team:Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n" |
19 | 20 | "MIME-Version:1.0\n" |
20 | 21 | "Content-Type:text/plain; charset=UTF-8\n" |
@@ -1274,6 +1275,11 @@ msgid "" |
1274 | 1275 | " not be used outside of function definitions even within the context of code" |
1275 | 1276 | " passed to the :func:`exec` function. The return value is ``None``." |
1276 | 1277 | msgstr"" |
| 1278 | +"这个函数支持动态执行 Python 代码。 *object* 必须是字符串或者代码对象。 如果是字符串,那么该字符串将被解析为一系列 Python " |
| 1279 | +"语句并执行(除非发生语法错误)。 [#]_ 如果是代码对象,它将被直接执行。 在任何情况下,被执行的代码都应当是有效的文件输入(见参考手册中的 " |
| 1280 | +":ref:`file-input` 一节)。 请注意即使在传递给 :func:`exec` " |
| 1281 | +"函数的代码的上下文中,:keyword:`nonlocal`, :keyword:`yield` 和 :keyword:`return` " |
| 1282 | +"语句也不能在函数定义以外使用。 该函数的返回值是 ``None``。" |
1277 | 1283 |
|
1278 | 1284 | #:../../library/functions.rst:658 |
1279 | 1285 | msgid"" |
@@ -1336,6 +1342,8 @@ msgid "" |
1336 | 1342 | "Pass an explicit *locals* dictionary if you need to see effects of the code " |
1337 | 1343 | "on *locals* after function :func:`exec` returns." |
1338 | 1344 | msgstr"" |
| 1345 | +"默认情况下,*locals* 的行为如下面 :func:`locals` 函数描述的一样:不要试图改变默认的 *locals* 字典。 如果您需要在 " |
| 1346 | +":func:`exec` 函数返回时查看代码对 *locals* 的影响,请明确地传递 *locals* 字典。" |
1339 | 1347 |
|
1340 | 1348 | #:../../library/functions.rst:701 |
1341 | 1349 | msgid"Added the *closure* parameter." |
@@ -1921,12 +1929,14 @@ msgid "" |
1921 | 1929 | "blocks, but not in class blocks. Note that at the module level, " |
1922 | 1930 | ":func:`locals` and :func:`globals` are the same dictionary." |
1923 | 1931 | msgstr"" |
| 1932 | +"更新并返回表示当前本地符号表的字典。 在函数代码块但不是类代码块中调用 :func:`locals` 时将返回自由变量。 " |
| 1933 | +"请注意在模块层级上,:func:`locals` 和 :func:`globals` 是同一个字典。" |
1924 | 1934 |
|
1925 | 1935 | #:../../library/functions.rst:1135 |
1926 | 1936 | msgid"" |
1927 | 1937 | "The contents of this dictionary should not be modified; changes may not " |
1928 | 1938 | "affect the values of local and free variables used by the interpreter." |
1929 | | -msgstr"" |
| 1939 | +msgstr"不要更改此字典的内容;更改不会影响解释器使用的局部变量或自由变量的值。" |
1930 | 1940 |
|
1931 | 1941 | #:../../library/functions.rst:1140 |
1932 | 1942 | msgid"" |
|