11# SOME DESCRIPTIVE TITLE.
2- # Copyright (C) 2001-2018 , Python Software Foundation
2+ # Copyright (C) 2001-2019 , Python Software Foundation
33# This file is distributed under the same license as the Python package.
44# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55#
1313# eric R <[email protected] >, 20181414# ww song <[email protected] >, 20181515# Freesand Leo <[email protected] >, 201816+ # Zombie110year <[email protected] >, 20191617#
1718#, fuzzy
1819msgid ""
1920msgstr ""
2021"Project-Id-Version : Python 3.7\n "
2122"Report-Msgid-Bugs-To : \n "
22- "POT-Creation-Date : 2018-12-20 10:06 +0900\n "
23+ "POT-Creation-Date : 2019-01-01 10:14 +0900\n "
2324"PO-Revision-Date : 2017-02-16 23:38+0000\n "
24- "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2018 \n "
25+ "Last-Translator : Zombie110year <zombie110year@gmail .com>, 2019 \n "
2526"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2627"MIME-Version : 1.0\n "
2728"Content-Type : text/plain; charset=UTF-8\n "
@@ -31,7 +32,7 @@ msgstr ""
3132
3233#: ../../reference/datamodel.rst:6
3334msgid "Data model"
34- msgstr "数据类型 "
35+ msgstr "数据模型 "
3536
3637#: ../../reference/datamodel.rst:12
3738msgid "Objects, values and types"
@@ -44,8 +45,8 @@ msgid ""
4445"sense, and in conformance to Von Neumann's model of a \" stored program "
4546"computer,\" code is also represented by objects.)"
4647msgstr ""
47- ":dfn:`对象` 是 Python 中对数据的抽象。Python 程序中的所有数据都是由对象或对象间关系来表示的。( 从某种意义上说,按照冯·诺依曼的 "
48- "\" 存储程序计算机\" 模型,代码本身也是由对象来表示的。) "
48+ ":dfn:`对象` 是 Python 中对数据的抽象。Python 程序中的所有数据都是由对象或对象间关系来表示的。( 从某种意义上说,按照冯·诺依曼的 "
49+ "“ 存储程序计算机” 模型,代码本身也是由对象来表示的。) "
4950
5051#: ../../reference/datamodel.rst:35
5152msgid ""
@@ -911,6 +912,11 @@ msgid ""
911912"exception is raised and the iterator will have reached the end of the set of"
912913" values to be returned."
913914msgstr ""
915+ "一个使用 :keyword:`yield` 语句 (见 :ref:`yield` 章节)的函数或方法被称作一个 "
916+ ":dfn:`生成器函数`。利益个函数,当调用时,总是返回一个可以执行函数体的迭代器对象:调用该迭代器的 "
917+ ":meth:`iterator.__next__` 方法将会导致这个函数一直运行直到它使用 :keyword:`!yield` "
918+ "语句提供了一个值为止。当这个函数执行 :keyword:`return` 语句或者最后停止, 一个 :exc:`StopIteration` "
919+ "异常被抛出并且这个迭代器将会到达将被返回的值的集合的末尾。"
914920
915921#: ../../reference/datamodel.rst:636
916922msgid "Coroutine functions"
@@ -1035,6 +1041,11 @@ msgid ""
10351041"object does not contain the code object used to initialize the module (since"
10361042" it isn't needed once the initialization is done)."
10371043msgstr ""
1044+ "模块是 Python 代码的基本组织单元,由 :ref:`import system` 创建,由 :keyword:`import` "
1045+ "语句调用,或者通过函数调用,例如 :func:`importlib.import_module` 和内置的 "
1046+ ":func:`__import__`。模块对象具有由字典对象实现的命名空间(这是被模块中定义的函数的 ``__globals__`` "
1047+ "属性引用的字典)。属性引用被转换为该字典中的查找,例如, ``m.x`` 相当于 "
1048+ "``m.__dict__[\" x\" ]``。模块对象不包含用于初始化模块的代码对象(因为初始化完成后不需要它)。"
10381049
10391050#: ../../reference/datamodel.rst:713
10401051msgid ""
@@ -3292,6 +3303,9 @@ msgid ""
32923303"using the :keyword:`!with` statement (described in section :ref:`with`), but"
32933304" can also be used by directly invoking their methods."
32943305msgstr ""
3306+ "一个 :dfn:`上下文管理器` 是一个对象,它定义了在执行 :keyword:`with` "
3307+ "语句时要建立的运行时上下文。上下文管理器处理进入和退出所需运行时上下文以执行代码块。通常使用 :keyword:`!with` 语句(在 "
3308+ ":ref:`with:` 中描述),但是也可以通过直接调用它们的方法来使用。"
32953309
32963310#: ../../reference/datamodel.rst:2434
32973311msgid ""
@@ -3310,6 +3324,8 @@ msgid ""
33103324"statement will bind this method's return value to the target(s) specified in"
33113325" the :keyword:`!as` clause of the statement, if any."
33123326msgstr ""
3327+ "进入与此对象相关的运行时上下文。 :keyword:`with` 语句将会绑定这个方法的返回值到 :keyword:`!as` "
3328+ "子句中指定的目标,如果有的话。"
33133329
33143330#: ../../reference/datamodel.rst:2449
33153331msgid ""
0 commit comments