55#
66# Translators:
77# cissoid <[email protected] >, 20188- # Freesand Leo <[email protected] >, 2019 8+ # Freesand Leo <[email protected] >, 2020 99#
1010#, fuzzy
1111msgid ""
@@ -14,7 +14,7 @@ msgstr ""
1414"Report-Msgid-Bugs-To : \n "
1515"POT-Creation-Date : 2020-05-31 09:25+0000\n "
1616"PO-Revision-Date : 2017-02-16 17:46+0000\n "
17- "
Last-Translator :
Freesand Leo <[email protected] >, 2019 \n "
17+ "
Last-Translator :
Freesand Leo <[email protected] >, 2020 \n "
1818"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
1919"MIME-Version : 1.0\n "
2020"Content-Type : text/plain; charset=UTF-8\n "
@@ -34,6 +34,9 @@ msgid ""
3434"2to3 supporting library :mod:`lib2to3` is, however, a flexible and generic "
3535"library, so it is possible to write your own fixers for 2to3."
3636msgstr ""
37+ "2to3 是一个 Python 程序,它可以读取 Python 2.x 的源代码并使用一系列的 *修复器* 来将其转换为合法的 Python 3.x "
38+ "代码。 标准库已包含了丰富的修复器,这足以处理几乎所有代码。 不过 2to3 的支持库 :mod:`lib2to3` "
39+ "是一个很灵活通用的库,所以还可以编写你自己的 2to3 修复器。"
3740
3841#: ../../library/2to3.rst:18
3942msgid "Using 2to3"
@@ -146,6 +149,10 @@ msgid ""
146149"already has had its print statements converted. Also :option:`!-e` can be "
147150"used to make :func:`exec` a function."
148151msgstr ""
152+ "由于某些 print 语句可被解读为函数调用或是语句,2to3 并不总能读取包含 print 函数的文件。 当 2to3 检测到存在 ``from "
153+ "__future__ import print_function`` 编译器指令时,会修改其内部语法将 :func:`print` 解读为函数。 "
154+ "这一变动也可以使用 :option:`!-p` 旗标手动开启。 使用 :option:`!-p` 来为已转换过 print 语句的代码运行修复器。 "
155+ "也可以使用 :option:`!-e` 将 :func:`exec` 解读为函数。"
149156
150157#: ../../library/2to3.rst:105
151158msgid ""
@@ -696,6 +703,9 @@ msgid ""
696703" Python version. Consider third-party alternatives such as `LibCST`_ or "
697704"`parso`_."
698705msgstr ""
706+ "Python 3.9 将切换到 PEG 解析器 (参见 :pep:`617`),Python 3.10 可能会包含 lib2to3 的 LL(1) "
707+ "解析器所不能解析的新语法。 ``lib2to3`` 模块可能会在未来的 Python 版本中被移出标准库。 请考虑使用第三方替代例如 `LibCST`_"
708+ " 或 `parso`_。"
699709
700710#: ../../library/2to3.rst:476
701711msgid ""
0 commit comments