@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.13\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2025-01-17 14:16 +0000\n "
18
+ "POT-Creation-Date : 2025-04-18 14:18 +0000\n "
19
19
"PO-Revision-Date : 2021-06-29 13:04+0000\n "
20
20
"Last-Translator : Freesand Leo <yuqinju@163.com>, 2025\n "
21
21
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -115,6 +115,20 @@ msgid ""
115
115
"Old: print (x, y) # prints repr((x, y))\n"
116
116
"New: print((x, y)) # Not the same as print(x, y)!"
117
117
msgstr ""
118
+ "旧: print \" The answer is\" , 2*2\n"
119
+ "新: print(\" The answer is\" , 2*2)\n"
120
+ "\n"
121
+ "旧: print x, # 末尾逗号将抑制换行符\n"
122
+ "新: print(x, end=\" \" ) # 添加一个空格代替换行符\n"
123
+ "\n"
124
+ "旧: print # 打印一个换行符\n"
125
+ "新: print() # 你必须调用函数!\n"
126
+ "\n"
127
+ "旧: print >>sys.stderr, \" fatal error\" \n"
128
+ "新: print(\" fatal error\" , file=sys.stderr)\n"
129
+ "\n"
130
+ "旧: print (x, y) # 打印 repr((x, y))\n"
131
+ "新: print((x, y)) # 不同于 print(x, y)!"
118
132
119
133
#: ../../whatsnew/3.0.rst:116
120
134
msgid "You can also customize the separator between items, e.g.::"
@@ -187,6 +201,8 @@ msgid ""
187
201
"Also, the :meth:`!dict.iterkeys`, :meth:`!dict.iteritems` and "
188
202
":meth:`!dict.itervalues` methods are no longer supported."
189
203
msgstr ""
204
+ "此外,:meth:`!dict.iterkeys`, :meth:`!dict.iteritems` 和 "
205
+ ":meth:`!dict.itervalues` 等方法将不再被支持。"
190
206
191
207
#: ../../whatsnew/3.0.rst:156
192
208
msgid ""
@@ -222,6 +238,7 @@ msgid ""
222
238
":func:`range` now behaves like :func:`!xrange` used to behave, except it "
223
239
"works with values of arbitrary size. The latter no longer exists."
224
240
msgstr ""
241
+ "现在 :func:`range` 的行为与过去 :func:`!xrange` 的行为类似,区别在于它能处理任意大小的值。 后者已不复存在。"
225
242
226
243
#: ../../whatsnew/3.0.rst:177
227
244
msgid ":func:`zip` now returns an iterator."
@@ -258,6 +275,8 @@ msgid ""
258
275
"providing a comparison function. Use the *key* argument instead. N.B. the "
259
276
"*key* and *reverse* arguments are now \" keyword-only\" ."
260
277
msgstr ""
278
+ ":meth:`sorted` 和 :meth:`list.sort` 不再接受提供比较函数的 *cmp* 参数。 请改用 *key* 参数。 注意 "
279
+ "*key* 和 *reverse* 参数现在都是“仅限关键字”参数。"
261
280
262
281
#: ../../whatsnew/3.0.rst:200
263
282
msgid ""
@@ -268,6 +287,10 @@ msgid ""
268
287
"really need the :func:`!cmp` functionality, you could use the expression "
269
288
"``(a > b) - (a < b)`` as the equivalent for ``cmp(a, b)``.)"
270
289
msgstr ""
290
+ ":func:`!cmp` 函数应视为已不复存在,而 :meth:`!__cmp__` 特殊方法再不再受支持。 请使用 "
291
+ ":meth:`~object.__lt__` 进行排序,并根据需要使用 :meth:`~object.__eq__` 与 "
292
+ ":meth:`~object.__hash__`,以及其他富比较操作。 (如果你确实需要 :func:`!cmp` 的功能,你可以使用表达式 ``(a "
293
+ "> b) - (a < b)`` 作为 ``cmp(a, b)`` 的等价形式。)"
271
294
272
295
#: ../../whatsnew/3.0.rst:207
273
296
msgid "Integers"
0 commit comments