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

Skip to content

Commit ff1701b

Browse files
committed
[po] auto sync bot
1 parent 235b538 commit ff1701b

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

glossary.po

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# ryohei <[email protected]>, 2017
88
# Shengjing Zhu <[email protected]>, 2018
99
# Fred <[email protected]>, 2018
10-
# Freesand Leo <[email protected]>, 2018
1110
# Junkai Shao <[email protected]>, 2018
11+
# Freesand Leo <[email protected]>, 2018
1212
#
1313
#, fuzzy
1414
msgid ""
@@ -17,7 +17,7 @@ msgstr ""
1717
"Report-Msgid-Bugs-To: \n"
1818
"POT-Creation-Date: 2018-10-27 09:37+0900\n"
1919
"PO-Revision-Date: 2017-02-16 17:32+0000\n"
20-
"Last-Translator: Junkai Shao <skaifun.dev@gmail.com>, 2018\n"
20+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2018\n"
2121
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2222
"MIME-Version: 1.0\n"
2323
"Content-Type: text/plain; charset=UTF-8\n"
@@ -773,8 +773,9 @@ msgid ""
773773
"division. Note that ``(-11) // 4`` is ``-3`` because that is ``-2.75`` "
774774
"rounded *downward*. See :pep:`238`."
775775
msgstr ""
776-
"向下舍入到最接近的整数的数学除法。向下取整除法的运算符是 ``//`` 。例如,表达式 ``11 // 4`` 的计算结果是 ``2`` ,而与之相反的是浮点数的真正除法返回 ``2.75`` 。注意 ``(-11) // 4`` 返回 ``-3``是因为\n"
777-
"结果``-2.75`` *向下* 舍入得到的。见 :pep:`238` 。"
776+
"向下舍入到最接近的整数的数学除法。向下取整除法的运算符是 ``//`` 。例如,表达式 ``11 // 4`` 的计算结果是 ``2`` "
777+
",而与之相反的是浮点数的真正除法返回 ``2.75`` 。注意 ``(-11) // 4`` 会返回 ``-3`` 因为这是 ``-2.75`` "
778+
"*向下* 舍入得到的结果。见 :pep:`238` 。"
778779

779780
#: ../../glossary.rst:381
780781
msgid "function"
@@ -930,7 +931,7 @@ msgstr "参见 :term:`global interpreter lock`。"
930931

931932
#: ../../glossary.rst:465
932933
msgid "global interpreter lock"
933-
msgstr "全局解释器锁"
934+
msgstr "global interpreter lock -- 全局解释器锁"
934935

935936
#: ../../glossary.rst:467
936937
msgid ""
@@ -942,7 +943,7 @@ msgid ""
942943
"multi-threaded, at the expense of much of the parallelism afforded by multi-"
943944
"processor machines."
944945
msgstr ""
945-
":term:`CPython` 解析器所采用的一种机制,它确保同一时刻只有一个线程在执行 Python "
946+
":term:`CPython` 解释器所采用的一种机制,它确保同一时刻只有一个线程在执行 Python "
946947
":term:`bytecode`。此机制通过设置对象模型 (包括 :class:`dict` 等重要内置类型) 针对并发访问的隐式安全简化了 "
947948
"CPython 实现。给整个解释器加锁使得解释器多线程运行更方便,其代价则是牺牲了在多处理器上的并行性。"
948949

@@ -953,6 +954,7 @@ msgid ""
953954
" such as compression or hashing. Also, the GIL is always released when "
954955
"doing I/O."
955956
msgstr ""
957+
"不过,某些标准库或第三方库的扩展模块被设计为在执行计算密集型任务如压缩或哈希时释放 GIL。此外,在执行 I/O 操作时也总是会释放 GIL。"
956958

957959
#: ../../glossary.rst:481
958960
msgid ""
@@ -962,6 +964,7 @@ msgid ""
962964
"that overcoming this performance issue would make the implementation much "
963965
"more complicated and therefore costlier to maintain."
964966
msgstr ""
967+
"创建一个(以更精细粒度来锁定共享数据的)“自由线程”解释器的努力从未获得成功,因为这会牺牲在普通单处理器情况下的性能。据信克服这种性能问题的措施将导致实现变得更复杂,从而更难以维护。"
965968

966969
#: ../../glossary.rst:487
967970
msgid "hash-based pyc"
@@ -972,7 +975,7 @@ msgid ""
972975
"A bytecode cache file that uses the hash rather than the last-modified time "
973976
"of the corresponding source file to determine its validity. See :ref:`pyc-"
974977
"invalidation`."
975-
msgstr ""
978+
msgstr "使用对应源文件的哈希值而非最后修改时间来确定其有效性的字节码缓存文件。参见 :ref:`pyc-invalidation`。"
976979

977980
#: ../../glossary.rst:492
978981
msgid "hashable"
@@ -1046,7 +1049,7 @@ msgstr "importing -- 导入"
10461049
msgid ""
10471050
"The process by which Python code in one module is made available to Python "
10481051
"code in another module."
1049-
msgstr ""
1052+
msgstr "令一个模块中的 Python 代码能为另一个模块中的 Python 代码所使用的过程。"
10501053

10511054
#: ../../glossary.rst:530
10521055
msgid "importer"

tutorial/controlflow.po

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ msgid ""
327327
":keyword:`return` without an expression argument returns ``None``. Falling "
328328
"off the end of a function also returns ``None``."
329329
msgstr ""
330+
":keyword:`return` 语句返回一个函数中的值。不带表达式参数的 :keyword:`return` 返回 "
331+
"``None``。函数执行到最后也会返回 ``None``。"
330332

331333
#: ../../tutorial/controlflow.rst:337
332334
msgid ""
@@ -342,6 +344,11 @@ msgid ""
342344
"this example it is equivalent to ``result = result + [a]``, but more "
343345
"efficient."
344346
msgstr ""
347+
"``result.append(a)`` 语句调用了列表对象 ``result`` 的* 。方法是 '属于' 一个对象的函数,它被命名为 "
348+
"``obj.methodname`` ,其中 ``obj`` 是某个对象(也可能是一个表达式), ``methodname`` "
349+
"是由对象类型中定义的方法的名称。不同的类型可以定义不同的方法。不同类型的方法可以有相同的名称而不会引起歧义。(可以使用 *类* "
350+
"定义自己的对象类型和方法,请参阅 :ref:`tut-classes` )示例中的方法 :meth:`append` "
351+
"是为列表对象定义的;它会在列表的最后添加一个新的元素。在这个示例中它相当于 ``result = result + [a]`` ,但更高效。"
345352

346353
#: ../../tutorial/controlflow.rst:352
347354
msgid "More on Defining Functions"

0 commit comments

Comments
 (0)