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

Skip to content

Commit 519f49e

Browse files
[po] auto sync
1 parent e6afd1b commit 519f49e

5 files changed

Lines changed: 42 additions & 37 deletions

File tree

library/os.po

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4970,12 +4970,15 @@ msgid ""
49704970
"not specify the meaning of the return value of the C function, so the return"
49714971
" value of the Python function is system-dependent."
49724972
msgstr ""
4973+
"在子外壳程序中执行此命令(一个字符串)。 这是通过调用标准 C 函数 :c:func:`system` 来实现的,并受到同样的限制。 对 "
4974+
":data:`sys.stdin` 的更改等不会反映在所执行命令的环境中。 如果 *command* 生成了任何输出,它将被发送到解释器的标准输出流。 "
4975+
"C 标准没有指明这个 C 函数返回值的含义,因此这个 Python 函数的返回值取决于具体系统。"
49734976

49744977
#: ../../library/os.rst:3972
49754978
msgid ""
49764979
"On Unix, the return value is the exit status of the process encoded in the "
49774980
"format specified for :func:`wait`."
4978-
msgstr ""
4981+
msgstr "在 Unix 上,返回值为进程的退出状态,以针对 :func:`wait` 而指定的格式进行编码。"
49794982

49804983
#: ../../library/os.rst:3975
49814984
msgid ""

library/subprocess.po

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,14 +1735,16 @@ msgstr "通过 shell 来调用程序通常是不必要的。"
17351735
msgid ""
17361736
"The :func:`call` return value is encoded differently to that of "
17371737
":func:`os.system`."
1738-
msgstr ""
1738+
msgstr ":func:`call` 返回值的编码方式与 :func:`os.system` 的不同。"
17391739

17401740
#: ../../library/subprocess.rst:1279
17411741
msgid ""
17421742
"The :func:`os.system` function ignores SIGINT and SIGQUIT signals while the "
17431743
"command is running, but the caller must do this separately when using the "
17441744
":mod:`subprocess` module."
17451745
msgstr ""
1746+
":func:`os.system` 函数在命令运行期间会忽略 SIGINT 和 SIGQUIT 信号,但调用方必须在使用 "
1747+
":mod:`subprocess` 模块时分别执行此操作。"
17461748

17471749
#: ../../library/subprocess.rst:1283
17481750
msgid "A more realistic example would look like this::"

library/threading.po

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Pandaaaa906 <[email protected]>, 2019
1111
# ppcfish <[email protected]>, 2019
1212
# kevin wong <[email protected]>, 2020
13-
# Freesand Leo <[email protected]>, 2020
13+
# Freesand Leo <[email protected]>, 2021
1414
#
1515
#, fuzzy
1616
msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919
"Report-Msgid-Bugs-To: \n"
2020
"POT-Creation-Date: 2021-05-12 06:19+0000\n"
2121
"PO-Revision-Date: 2017-02-16 23:30+0000\n"
22-
"Last-Translator: Freesand Leo <[email protected]>, 2020\n"
22+
"Last-Translator: Freesand Leo <[email protected]>, 2021\n"
2323
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2424
"MIME-Version: 1.0\n"
2525
"Content-Type: text/plain; charset=UTF-8\n"
@@ -188,6 +188,8 @@ msgid ""
188188
"have not yet been started. However, the main thread is always part of the "
189189
"result, even when terminated."
190190
msgstr ""
191+
"返回当前所有存活的 :class:`Thread` 对象的列表。 该列表包括守护线程以及 :func:`current_thread` 创建的空线程。 "
192+
"它不包括已终结的和尚未开始的线程。 但是,主线程将总是结果的一部分,即使是在已终结的时候。"
191193

192194
#: ../../library/threading.rst:122
193195
msgid ""

tutorial/classes.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ msgid ""
4141
"also have methods (defined by its class) for modifying its state."
4242
msgstr ""
4343
"类把数据与功能绑定在一起。创建新类就是创建新的对象 *类型*,从而创建该类型的新 *实例* "
44-
"。类实例具有多种保持自身状态的属性。类实例还支持(在类中定义的)改变自身状态的方法。"
44+
"。类实例具有多种保持自身状态的属性。类实例还支持(由类定义的)修改自身状态的方法。"
4545

4646
#: ../../tutorial/classes.rst:13
4747
msgid ""
@@ -56,9 +56,9 @@ msgid ""
5656
"nature of Python: they are created at runtime, and can be modified further "
5757
"after creation."
5858
msgstr ""
59-
"和其他编程语言相比,Python 用非常少的新语法和语义将类加入到语言中。它是 C++ 和 Modula-3 中类机制的结合。Python "
59+
"和其他编程语言相比,Python 用非常少的新语法和语义将类加入到语言中。它是 C++ 和 Modula-3 中类机制的结合体。Python "
6060
"的类提供了面向对象编程的所有标准特性:类继承机制允许多个基类,派生类可以覆盖它基类的任何方法,一个方法可以调用基类中相同名称的的方法。对象可以包含任意数量和类型的数据。和模块一样,类也拥有"
61-
" Python 天然的动态特性:它们在运行时创建,可以在创建后修改。"
61+
" Python 天然的动态特性:在运行时创建,创建后可以修改。"
6262

6363
#: ../../tutorial/classes.rst:23
6464
msgid ""
@@ -87,8 +87,8 @@ msgid ""
8787
"since its object-oriented semantics are closer to those of Python than C++, "
8888
"but I expect that few readers have heard of it.)"
8989
msgstr ""
90-
"(由于缺乏关于类的公认术语,我会偶尔使用 SmalltalkC++ 的用辞。 我还会使用 Modula-3 的术语,因为其面向对象的语义比 C++"
91-
" 更接近 Python,但我预计少有读者听说过它。)"
90+
"(由于缺乏关于类的公认术语,我会偶尔使用 SmalltalkC++ 的术语,我还会使用 Modula-3 的术语,因为它的面向对象语义比 C++ "
91+
"更接近 Python,但估计没几个读者听说过这门语言。)"
9292

9393
#: ../../tutorial/classes.rst:43
9494
msgid "A Word About Names and Objects"

tutorial/errors.po

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
# ww song <[email protected]>, 2018
88
# Larry Wang <[email protected]>, 2018
99
# Junkai Shao <[email protected]>, 2018
10-
# dannyvi <[email protected]>, 2019
11-
# Freesand Leo <[email protected]>, 2021
1210
# jaystone776 <[email protected]>, 2021
11+
# Freesand Leo <[email protected]>, 2021
1312
#
1413
#, fuzzy
1514
msgid ""
@@ -18,7 +17,7 @@ msgstr ""
1817
"Report-Msgid-Bugs-To: \n"
1918
"POT-Creation-Date: 2021-05-05 06:14+0000\n"
2019
"PO-Revision-Date: 2017-02-16 23:40+0000\n"
21-
"Last-Translator: jaystone776 <1732865113@qq.com>, 2021\n"
20+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2021\n"
2221
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2322
"MIME-Version: 1.0\n"
2423
"Content-Type: text/plain; charset=UTF-8\n"
@@ -361,7 +360,7 @@ msgid ""
361360
"The :keyword:`try` statement has another optional clause which is intended "
362361
"to define clean-up actions that must be executed under all circumstances. "
363362
"For example::"
364-
msgstr ":keyword:`try` 语句有另一个可选子句,用于定义必须在所有情况下执行的清理操作。例如::"
363+
msgstr ":keyword:`try` 语句还有一个可选子句,用于定义在所有情况下都必须要执行的清理操作。例如"
365364

366365
#: ../../tutorial/errors.rst:392
367366
msgid ""
@@ -371,9 +370,9 @@ msgid ""
371370
"statement produces an exception. The following points discuss more complex "
372371
"cases when an exception occurs:"
373372
msgstr ""
374-
"如果存在 :keyword:`finally` 子句,则 :keyword:`!finally` 子句将作为 :keyword:`try` "
375-
"语句结束前的最后一项任务被执行。 :keyword:`!finally` 子句不论 :keyword:`!try` 语句是否产生了异常都会被执行。 "
376-
"以下几点讨论了当异常发生时一些更复杂的情况:"
373+
"如果存在 :keyword:`finally` 子句,则 :keyword:`!finally` 子句是 :keyword:`try` "
374+
"语句结束前执行的最后一项任务。不论 :keyword:`!try` 语句是否触发异常,都会执行 :keyword:`!finally` "
375+
"子句。以下内容介绍了几种比较复杂的触发异常情景:"
377376

378377
#: ../../tutorial/errors.rst:398
379378
msgid ""
@@ -382,26 +381,26 @@ msgid ""
382381
" not handled by an :keyword:`!except` clause, the exception is re-raised "
383382
"after the :keyword:`!finally` clause has been executed."
384383
msgstr ""
385-
"如果在执行 :keyword:`!try` 子句期间发生了异常,该异常可由一个 :keyword:`except` 子句进行处理。 如果异常没有被某个 "
386-
":keyword:`!except` 子句所处理,则该异常会在 :keyword:`!finally` 子句执行之后被重新引发。"
384+
"如果执行 :keyword:`!try` 子句期间触发了某个异常,则某个 :keyword:`except` 子句应处理该异常。如果该异常没有 "
385+
":keyword:`!except` 子句处理,在 :keyword:`!finally` 子句执行后会被重新触发。"
387386

388387
#: ../../tutorial/errors.rst:404
389388
msgid ""
390389
"An exception could occur during execution of an :keyword:`!except` or "
391390
":keyword:`!else` clause. Again, the exception is re-raised after the "
392391
":keyword:`!finally` clause has been executed."
393392
msgstr ""
394-
"异常也可能在 :keyword:`!except` 或 :keyword:`!else` 子句执行期间发生。 同样地,该异常会在 "
395-
":keyword:`!finally` 子句执行之后被重新引发。"
393+
":keyword:`!except` 或 :keyword:`!else` 子句执行期间也会触发异常。 同样,该异常会在 "
394+
":keyword:`!finally` 子句执行之后被重新触发。"
396395

397396
#: ../../tutorial/errors.rst:408
398397
msgid ""
399398
"If the :keyword:`!finally` clause executes a :keyword:`break`, "
400399
":keyword:`continue` or :keyword:`return` statement, exceptions are not re-"
401400
"raised."
402401
msgstr ""
403-
"如果 :keyword:`!finally` 子句执行了 :keyword:`break`, :keyword:`continue` 或 "
404-
":keyword:`return` 语句,异常不会被重新引发。"
402+
"如果 :keyword:`!finally` 子句中包含 :keyword:`break`:keyword:`continue` 或 "
403+
":keyword:`return` 等语句,异常将不会被重新引发。"
405404

406405
#: ../../tutorial/errors.rst:412
407406
msgid ""
@@ -410,9 +409,9 @@ msgid ""
410409
"clause will execute just prior to the :keyword:`!break`, "
411410
":keyword:`!continue` or :keyword:`!return` statement's execution."
412411
msgstr ""
413-
"如果在执行 :keyword:`!try` 语句时遇到一个 :keyword:`break`, :keyword:`continue` 或 "
414-
":keyword:`return` 语句,则 :keyword:`!finally` 子句将在执行 :keyword:`!break`, "
415-
":keyword:`!continue` 或 :keyword:`!return` 语句之前被执行。"
412+
"如果执行 :keyword:`!try` 语句时遇到 :keyword:`break`,:keyword:`continue` 或 "
413+
":keyword:`return` 语句,则 :keyword:`!finally` 子句在执行 "
414+
":keyword:`!break`、:keyword:`!continue` 或 :keyword:`!return` 语句之前执行。"
416415

417416
#: ../../tutorial/errors.rst:418
418417
msgid ""
@@ -421,17 +420,17 @@ msgid ""
421420
":keyword:`!return` statement, not the value from the :keyword:`!try` "
422421
"clause's :keyword:`!return` statement."
423422
msgstr ""
424-
"如果 :keyword:`!finally` 子句中包含一个 :keyword:`!return` 语句,则返回值将来自 "
425-
":keyword:`!finally` 子句的某个 :keyword:`!return` 语句的返回值,而非来自 :keyword:`!try` 子句的"
426-
" :keyword:`!return` 语句的返回值。"
423+
"如果 :keyword:`!finally` 子句中包含 :keyword:`!return` 语句,则返回值来自 "
424+
":keyword:`!finally` 子句的某个 :keyword:`!return` 语句的返回值,而不是来自 :keyword:`!try` "
425+
"子句的 :keyword:`!return` 语句的返回值。"
427426

428427
#: ../../tutorial/errors.rst:424
429428
msgid "For example::"
430-
msgstr "例如 ::"
429+
msgstr "例如"
431430

432431
#: ../../tutorial/errors.rst:435
433432
msgid "A more complicated example::"
434-
msgstr "一个更为复杂的例子::"
433+
msgstr "这是一个比较复杂的例子:"
435434

436435
#: ../../tutorial/errors.rst:460
437436
msgid ""
@@ -440,8 +439,8 @@ msgid ""
440439
":keyword:`except` clause and therefore re-raised after the "
441440
":keyword:`!finally` clause has been executed."
442441
msgstr ""
443-
"正如你所看到的,:keyword:`finally` 子句在任何情况下都会被执行。 两个字符串相除所引发的 :exc:`TypeError` 不会由 "
444-
":keyword:`except` 子句处理,因此会在 :keyword:`!finally` 子句执行后被重新引发。"
442+
"如上所示,任何情况下都会执行 :keyword:`finally` 子句。:keyword:`except` 子句不处理两个字符串相除触发的 "
443+
":exc:`TypeError`,因此会在 :keyword:`!finally` 子句执行后被重新触发。"
445444

446445
#: ../../tutorial/errors.rst:465
447446
msgid ""
@@ -461,8 +460,7 @@ msgid ""
461460
" the object succeeded or failed. Look at the following example, which tries "
462461
"to open a file and print its contents to the screen. ::"
463462
msgstr ""
464-
"某些对象定义了在不再需要该对象时要执行的标准清理操作,无论使用该对象的操作是成功还是失败,清理操作都会被执行。 "
465-
"请查看下面的示例,它尝试打开一个文件并把其内容打印到屏幕上。::"
463+
"某些对象定义了不需要该对象时要执行的标准清理操作。无论使用该对象的操作是否成功,都会执行清理操作。比如,下例要打开一个文件,并输出文件内容:"
466464

467465
#: ../../tutorial/errors.rst:483
468466
msgid ""
@@ -473,13 +471,13 @@ msgid ""
473471
" to be used in a way that ensures they are always cleaned up promptly and "
474472
"correctly. ::"
475473
msgstr ""
476-
"这个代码的问题在于,它在这部分代码执行完后,会使文件在一段不确定的时间内处于打开状态。这在简单脚本中不是问题,但对于较大的应用程序来说可能是个问题。 "
477-
":keyword:`with` 语句允许像文件这样的对象能够以一种确保它们得到及时和正确的清理的方式使用。::"
474+
"这个代码的问题在于,执行完代码后,文件在一段不确定的时间内处于打开状态。在简单脚本中这没有问题,但对于较大的应用程序来说可能会出问题。:keyword:`with`"
475+
" 语句支持以及时、正确的清理的方式使用文件对象:"
478476

479477
#: ../../tutorial/errors.rst:493
480478
msgid ""
481479
"After the statement is executed, the file *f* is always closed, even if a "
482480
"problem was encountered while processing the lines. Objects which, like "
483481
"files, provide predefined clean-up actions will indicate this in their "
484482
"documentation."
485-
msgstr "执行完语句后,即使在处理行时遇到问题,文件 *f* 也始终会被关闭。和文件一样,提供预定义清理操作的对象将在其文档中指出这一点。"
483+
msgstr "语句执行完毕后,即使在处理行时遇到问题,都会关闭文件 *f*。和文件一样,支持预定义清理操作的对象会在文档中指出这一点。"

0 commit comments

Comments
 (0)