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

Skip to content

Commit 811b32c

Browse files
[po] auto sync
1 parent 8ab4e5c commit 811b32c

1 file changed

Lines changed: 16 additions & 6 deletions

File tree

library/decimal.po

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,17 +1036,17 @@ msgstr "每个线程都有自己的当前上下文,可使用 :func:`getcontext
10361036

10371037
#: ../../library/decimal.rst:918
10381038
msgid "Return the current context for the active thread."
1039-
msgstr ""
1039+
msgstr "返回活动线程的当前上下文。"
10401040

10411041
#: ../../library/decimal.rst:923
10421042
msgid "Set the current context for the active thread to *c*."
1043-
msgstr ""
1043+
msgstr "将活动线程的当前上下文设为 *c*。"
10441044

10451045
#: ../../library/decimal.rst:925
10461046
msgid ""
10471047
"You can also use the :keyword:`with` statement and the :func:`localcontext` "
10481048
"function to temporarily change the active context."
1049-
msgstr ""
1049+
msgstr "你也可以使用 :keyword:`with` 语句和 :func:`localcontext` 函数来临时改变活动上下文。"
10501050

10511051
#: ../../library/decimal.rst:930
10521052
msgid ""
@@ -1055,19 +1055,21 @@ msgid ""
10551055
"previous context when exiting the with-statement. If no context is "
10561056
"specified, a copy of the current context is used."
10571057
msgstr ""
1058+
"返回一个上下文管理器,它将在进入 with 语句时将活动线程的当前上下文设为 *ctx* 的一个副本并在退出 with 语句时恢复之前的上下文。 "
1059+
"如果未指定上下文,则会使用当前上下文的一个副本。"
10581060

10591061
#: ../../library/decimal.rst:935
10601062
msgid ""
10611063
"For example, the following code sets the current decimal precision to 42 "
10621064
"places, performs a calculation, and then automatically restores the previous"
10631065
" context::"
1064-
msgstr ""
1066+
msgstr "例如,以下代码会将当前 decimal 精度设为 42 位,执行一个运算,然后自动恢复之前的上下文::"
10651067

10661068
#: ../../library/decimal.rst:945
10671069
msgid ""
10681070
"New contexts can also be created using the :class:`Context` constructor "
10691071
"described below. In addition, the module provides three pre-made contexts:"
1070-
msgstr ""
1072+
msgstr "新的上下文也可使用下述的 :class:`Context` 构造器来创建。 此外,模块还提供了三种预设的上下文:"
10711073

10721074
#: ../../library/decimal.rst:951
10731075
msgid ""
@@ -1077,11 +1079,13 @@ msgid ""
10771079
"(treated as exceptions) except :const:`Inexact`, :const:`Rounded`, and "
10781080
":const:`Subnormal`."
10791081
msgstr ""
1082+
"这是由通用十进制算术规范描述所定义的标准上下文。 精度设为九。 舍入设为 :const:`ROUND_HALF_UP`。 清除所有旗标。 "
1083+
"启用所有陷阱(视为异常),但 :const:`Inexact`, :const:`Rounded` 和 :const:`Subnormal` 除外。"
10801084

10811085
#: ../../library/decimal.rst:957
10821086
msgid ""
10831087
"Because many of the traps are enabled, this context is useful for debugging."
1084-
msgstr ""
1088+
msgstr "由于启用了许多陷阱,此上下文适用于进行调试。"
10851089

10861090
#: ../../library/decimal.rst:962
10871091
msgid ""
@@ -1090,6 +1094,8 @@ msgid ""
10901094
":const:`ROUND_HALF_EVEN`. All flags are cleared. No traps are enabled (so "
10911095
"that exceptions are not raised during computations)."
10921096
msgstr ""
1097+
"这是由通用十进制算术规范描述所定义的标准上下文。 精度设为九。 舍入设为 :const:`ROUND_HALF_EVEN`。 清除所有旗标。 "
1098+
"不启用任何陷阱(因此在计算期间不会引发异常)。"
10931099

10941100
#: ../../library/decimal.rst:967
10951101
msgid ""
@@ -1098,6 +1104,8 @@ msgid ""
10981104
" raising exceptions. This allows an application to complete a run in the "
10991105
"presence of conditions that would otherwise halt the program."
11001106
msgstr ""
1107+
"由于禁用了陷阱,此上下文适用于希望结果值为 :const:`NaN` 或 :const:`Infinity` 而不是引发异常的应用。 "
1108+
"这允许应用在出现当其他情况下会中止程序的条件时仍能完成运行。"
11011109

11021110
#: ../../library/decimal.rst:975
11031111
msgid ""
@@ -1106,6 +1114,8 @@ msgid ""
11061114
"changing the default for new contexts created by the :class:`Context` "
11071115
"constructor."
11081116
msgstr ""
1117+
"此上下文被 :class:`Context` 构造器用作新上下文的原型。 改变一个字段(例如精度)的效果将是改变 :class:`Context` "
1118+
"构造器所创建的新上下文的默认值。"
11091119

11101120
#: ../../library/decimal.rst:979
11111121
msgid ""

0 commit comments

Comments
 (0)