@@ -322,13 +322,15 @@ msgid ""
322322"parameters, a.k.a. type hints. This PEP adds syntax to Python for annotating"
323323" the types of variables including class variables and instance variables::"
324324msgstr ""
325+ ":pep:`484` 引入了函数形参类型标注即类型提示的标准。 这个 PEP 为 Python 添加了标注变量类型的语法,包括类变量和实例变量::"
325326
326327#: ../../whatsnew/3.6.rst:225
327328msgid ""
328329"Just as for function annotations, the Python interpreter does not attach any"
329330" particular meaning to variable annotations and only stores them in the "
330331"``__annotations__`` attribute of a class or module."
331332msgstr ""
333+ "与函数标注一样,Python 解释器不会为变量标注附加任何特殊含义,仅会将其保存在类或模块的 ``__annotations__`` 属性中。"
332334
333335#: ../../whatsnew/3.6.rst:229
334336msgid ""
@@ -337,6 +339,8 @@ msgid ""
337339"metadata for third party tools and libraries via the abstract syntax tree "
338340"and the ``__annotations__`` attribute."
339341msgstr ""
342+ "与静态类型语法的变量声明不同,标注语法的目的是通过抽象语法树和 ``__annotations__`` "
343+ "属性提供一个简单方式来为第三方工具和库指定结构化类型元数据。"
340344
341345#: ../../whatsnew/3.6.rst:238
342346msgid ":pep:`526` -- Syntax for variable annotations."
@@ -355,6 +359,8 @@ msgid ""
355359"Tools that use or will use the new syntax: `mypy <http://www.mypy-"
356360"lang.org/>`_, `pytype <https://github.com/google/pytype>`_, PyCharm, etc."
357361msgstr ""
362+ "使用或将要使用此新语法的工具有: `mypy <http://www.mypy-lang.org/>`_, `pytype "
363+ "<https://github.com/google/pytype>`_, PyCharm 等等。"
358364
359365#: ../../whatsnew/3.6.rst:248
360366msgid "PEP 515: Underscores in Numeric Literals"
@@ -364,7 +370,7 @@ msgstr "PEP 515: 数字字面值中的下划线。"
364370msgid ""
365371":pep:`515` adds the ability to use underscores in numeric literals for "
366372"improved readability. For example::"
367- msgstr ""
373+ msgstr ":pep:`515` 增加了在数字字面值中使用下划线的能力以改善可读性。 例如:: "
368374
369375#: ../../whatsnew/3.6.rst:258
370376msgid ""
0 commit comments