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

Skip to content

Commit 87ce49c

Browse files
[po] auto sync
1 parent a336021 commit 87ce49c

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

library/decimal.po

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,19 +2010,23 @@ msgid ""
20102010
"make changes (such as ``getcontext().prec=10``) without interfering with "
20112011
"other threads."
20122012
msgstr ""
2013+
":func:`getcontext` 函数会为每个线程访问不同的 :class:`Context` 对象。 具有单独线程上下文意味着线程可以修改上下文 "
2014+
"(例如 ``getcontext().prec=10``) 而不影响其他线程。"
20132015

20142016
#: ../../library/decimal.rst:1782
20152017
msgid ""
20162018
"Likewise, the :func:`setcontext` function automatically assigns its target "
20172019
"to the current thread."
2018-
msgstr ""
2020+
msgstr "类似的 :func:`setcontext` 会为当前上下文的目标自动赋值。"
20192021

20202022
#: ../../library/decimal.rst:1785
20212023
msgid ""
20222024
"If :func:`setcontext` has not been called before :func:`getcontext`, then "
20232025
":func:`getcontext` will automatically create a new context for use in the "
20242026
"current thread."
20252027
msgstr ""
2028+
"如果在调用 :func:`setcontext` 之前调用了 :func:`getcontext`,则 :func:`getcontext` "
2029+
"将自动创建一个新的上下文在当前线程中使用。"
20262030

20272031
#: ../../library/decimal.rst:1789
20282032
msgid ""
@@ -2032,6 +2036,9 @@ msgid ""
20322036
"This should be done *before* any threads are started so that there won't be "
20332037
"a race condition between threads calling :func:`getcontext`. For example::"
20342038
msgstr ""
2039+
"新的上下文拷贝自一个名为 *DefaultContext* 的原型上下文。 要控制默认值以便每个线程在应用运行期间都使用相同的值,可以直接修改 "
2040+
"*DefaultContext* 对象。 这应当在任何线程启动 *之前* 完成以使得调用 :func:`getcontext` "
2041+
"的线程之间不会产生竞争条件。 例如::"
20352042

20362043
#: ../../library/decimal.rst:1814
20372044
msgid "Recipes"
@@ -2041,7 +2048,7 @@ msgstr "例程"
20412048
msgid ""
20422049
"Here are a few recipes that serve as utility functions and that demonstrate "
20432050
"ways to work with the :class:`Decimal` class::"
2044-
msgstr ""
2051+
msgstr "以下是一些用作工具函数的例程,它们演示了使用 :class:`Decimal` 类的各种方式::"
20452052

20462053
#: ../../library/decimal.rst:1971
20472054
msgid "Decimal FAQ"
@@ -2051,24 +2058,26 @@ msgstr "Decimal FAQ"
20512058
msgid ""
20522059
"Q. It is cumbersome to type ``decimal.Decimal('1234.5')``. Is there a way "
20532060
"to minimize typing when using the interactive interpreter?"
2054-
msgstr ""
2061+
msgstr "Q. 总是输入 ``decimal.Decimal('1234.5')`` 是否过于笨拙。 在使用交互解释器时有没有最小化输入量的方式?"
20552062

20562063
#: ../../library/decimal.rst:1976
20572064
msgid "A. Some users abbreviate the constructor to just a single letter:"
2058-
msgstr ""
2065+
msgstr "A. 有些用户会将构造器简写为一个字母:"
20592066

20602067
#: ../../library/decimal.rst:1982
20612068
msgid ""
20622069
"Q. In a fixed-point application with two decimal places, some inputs have "
20632070
"many places and need to be rounded. Others are not supposed to have excess "
20642071
"digits and need to be validated. What methods should be used?"
20652072
msgstr ""
2073+
"Q. 在带有两个十进制位的定点数应用中,有些输入值具有许多位,需要被舍入。 另一些数则不应具有多余位,需要验证有效性。 这种情况应该用什么方法?"
20662074

20672075
#: ../../library/decimal.rst:1986
20682076
msgid ""
20692077
"A. The :meth:`quantize` method rounds to a fixed number of decimal places. "
20702078
"If the :const:`Inexact` trap is set, it is also useful for validation:"
20712079
msgstr ""
2080+
"A. 用 :meth:`quantize` 方法舍入到固定数量的十进制位。 如果设置了 :const:`Inexact` 陷阱,它也适用于验证有效性:"
20722081

20732082
#: ../../library/decimal.rst:2004
20742083
msgid ""

library/os.path.po

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# Freesand Leo <[email protected]>, 2019
88
# Zombie110year <[email protected]>, 2019
99
# ppcfish <[email protected]>, 2019
10+
# Arisaka97 <[email protected]>, 2019
1011
#
1112
#, fuzzy
1213
msgid ""
@@ -15,7 +16,7 @@ msgstr ""
1516
"Report-Msgid-Bugs-To: \n"
1617
"POT-Creation-Date: 2019-09-14 11:26+0000\n"
1718
"PO-Revision-Date: 2017-02-16 23:20+0000\n"
18-
"Last-Translator: ppcfish <ppcfish@gmail.com>, 2019\n"
19+
"Last-Translator: Arisaka97 <solitaire2312@gmail.com>, 2019\n"
1920
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2021
"MIME-Version: 1.0\n"
2122
"Content-Type: text/plain; charset=UTF-8\n"
@@ -83,9 +84,9 @@ msgid ""
8384
"manipulate a path that is *always* in one of the different formats. They "
8485
"all have the same interface:"
8586
msgstr ""
86-
"由于不同的操作系统具有不同的路径名称约定,因此标准库中有此模块的几个版本。 :mod:`os.path` "
87-
"模块始终是适合Python运行的操作系统的路径模块,因此可用于本地路径。但是,如果操作的路径 *总是* "
88-
"以一种不同的格式显示,那么也可以分别导入和使用各个模块。它们都具有相同的界面:"
87+
"由于不同的操作系统具有不同的路径名称约定,因此标准库中有此模块的几个版本。:mod:`os.path` 模块始终是适合 Python "
88+
"运行的操作系统的路径模块,因此可用于本地路径。但是,如果操作的路径 *总是* "
89+
"以一种不同的格式显示,那么也可以分别导入和使用各个模块。它们都具有相同的接口:"
8990

9091
#: ../../library/os.path.rst:52
9192
msgid ":mod:`posixpath` for UNIX-style paths"
@@ -112,6 +113,8 @@ msgid ""
112113
"platforms, this is equivalent to calling the function :func:`normpath` as "
113114
"follows: ``normpath(join(os.getcwd(), path))``."
114115
msgstr ""
116+
"返回路径 *path* 的绝对路径(标准化的)。在大多数平台上,这等同于用 ``normpath(join(os.getcwd(), path))`` "
117+
"的方式调用 :func:`normpath` 函数。"
115118

116119
#: ../../library/os.path.rst:70 ../../library/os.path.rst:83
117120
#: ../../library/os.path.rst:123 ../../library/os.path.rst:132

0 commit comments

Comments
 (0)