Skip to content

Commit c5e6dc1

Browse files
[po] auto sync
1 parent 0fd8c87 commit c5e6dc1

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.stat.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "93.27%", "updated_at": "2024-07-05T14:19:54Z"}
1+
{"translation": "93.29%", "updated_at": "2024-07-06T06:21:07Z"}

whatsnew/2.2.po

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.9\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2024-06-28 16:34+0000\n"
17+
"POT-Creation-Date: 2024-07-05 16:34+0000\n"
1818
"PO-Revision-Date: 2017-02-16 23:42+0000\n"
1919
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n"
2020
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -354,6 +354,7 @@ msgid ""
354354
"rules under which names are resolved. Consider this set of classes (diagram"
355355
" taken from :pep:`253` by Guido van Rossum)::"
356356
msgstr ""
357+
"通过改变名称解析规则,多重继承也变得更加有用。 请看下面这组类(图表摘自 :pep:`253` ,作者 Guido van Rossum):"
357358

358359
#: ../../whatsnew/2.2.rst:264
359360
msgid ""

whatsnew/3.0.po

+19-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ msgid ""
1515
msgstr ""
1616
"Project-Id-Version: Python 3.9\n"
1717
"Report-Msgid-Bugs-To: \n"
18-
"POT-Creation-Date: 2024-06-28 16:34+0000\n"
18+
"POT-Creation-Date: 2024-07-05 16:34+0000\n"
1919
"PO-Revision-Date: 2017-02-16 23:43+0000\n"
2020
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2024\n"
2121
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
@@ -90,6 +90,8 @@ msgid ""
9090
"with keyword arguments to replace most of the special syntax of the old "
9191
"``print`` statement (:pep:`3105`). Examples::"
9292
msgstr ""
93+
"``print`` 语句已被 :func:`print` 函数取代,其关键字参数取代了旧 ``print`` 语句 (:pep:`3105`) "
94+
"的大部分特殊语法。 示例::"
9395

9496
#: ../../whatsnew/3.0.rst:116
9597
msgid "You can also customize the separator between items, e.g.::"
@@ -110,20 +112,25 @@ msgid ""
110112
"\"B\"`` would write ``\"A\\nB\\n\"``; but in Python 3.0, ``print(\"A\\n\", "
111113
"\"B\")`` writes ``\"A\\n B\\n\"``."
112114
msgstr ""
115+
":func:`print` 函数不支持旧 ``print`` 语句的 \"softspace\" 功能。例如,在 Python 2.x "
116+
"中,``print \"A\\n\", \"B\"`` 会写入 ``\"A\\nB\\n\"``;但在 Python 3.0 "
117+
"中,``print(\"A\\n\", \"B\")`` 会写入 ``\"A\\n B\\n\"``。"
113118

114119
#: ../../whatsnew/3.0.rst:133
115120
msgid ""
116121
"Initially, you'll be finding yourself typing the old ``print x`` a lot in "
117122
"interactive mode. Time to retrain your fingers to type ``print(x)`` "
118123
"instead!"
119-
msgstr ""
124+
msgstr "最初,您会发现自己在交互模式下经常输入旧的 ``print x`` 。是时候重新训练你的手指以输入 ``print(x)`` 了!"
120125

121126
#: ../../whatsnew/3.0.rst:137
122127
msgid ""
123128
"When using the ``2to3`` source-to-source conversion tool, all ``print`` "
124129
"statements are automatically converted to :func:`print` function calls, so "
125130
"this is mostly a non-issue for larger projects."
126131
msgstr ""
132+
"使用 ``2to3`` 源代码到源代码转换工具时,所有 ``print`` 语句都会自动转换为 :func:`print` "
133+
"函数调用,因此对于大型项目来说,这基本上不是问题。"
127134

128135
#: ../../whatsnew/3.0.rst:143
129136
msgid "Views And Iterators Instead Of Lists"
@@ -140,12 +147,17 @@ msgid ""
140147
" longer works: ``k = d.keys(); k.sort()``. Use ``k = sorted(d)`` instead "
141148
"(this works in Python 2.5 too and is just as efficient)."
142149
msgstr ""
150+
":class:`dict` 方法 :meth:`dict.keys`、:meth:`dict.items` 和 :meth:`dict.values` "
151+
"返回 “视图” 而不是列表。 例如,这个写法不再有效: ``k = d.keys(); k.sort()``。 请使用 ``k = "
152+
"sorted(d)`` 代替(这在 Python 2.5 中也有效,而且同样高效)。"
143153

144154
#: ../../whatsnew/3.0.rst:153
145155
msgid ""
146156
"Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and "
147157
":meth:`dict.itervalues` methods are no longer supported."
148158
msgstr ""
159+
"此外,不再支持 :meth:`dict.iterkeys`、:meth:`dict.iteritems` 和 "
160+
":meth:`dict.itervalues` 方法。"
149161

150162
#: ../../whatsnew/3.0.rst:156
151163
msgid ""
@@ -158,6 +170,11 @@ msgid ""
158170
"function; the correct transformation is to use a regular :keyword:`for` loop"
159171
" (since creating a list would just be wasteful)."
160172
msgstr ""
173+
":func:`map` 和 :func:`filter` 均返回迭代器。 如果你确实需要一个列表并且所有输入序列的长度相等,简单的解决办法是将 "
174+
":func:`map` 包装在 :func:`list` 中,例如 "
175+
"``list(map(...))``,但更好的办法通常是使用列表推导式(特别是当原始代码使用了 :keyword:`lambda` "
176+
"的时候),或是重写代码使得它完全不需要列表。 还有一种特殊技巧是将 :func:`map` 作为函数的附带影响发起调用;正确的转换方式是使用一个常规的 "
177+
":keyword:`for` 循环(因为创建列表会浪费资源)。"
161178

162179
#: ../../whatsnew/3.0.rst:167
163180
msgid ""

0 commit comments

Comments
 (0)