@@ -15,7 +15,7 @@ msgid ""
15
15
msgstr ""
16
16
"Project-Id-Version : Python 3.9\n "
17
17
"Report-Msgid-Bugs-To : \n "
18
- "POT-Creation-Date : 2024-11-12 10:57 +0000\n "
18
+ "POT-Creation-Date : 2024-11-29 16:37 +0000\n "
19
19
"PO-Revision-Date : 2017-02-16 23:42+0000\n "
20
20
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
21
21
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -291,6 +291,7 @@ msgid ""
291
291
"as a concrete object (the iterator) that can be passed around to other "
292
292
"functions or stored in a data structure."
293
293
msgstr ""
294
+ "Python并不像Icon那样将生成器作为核心概念来采用。生成器被视为Python核心语言的一部分,但学习或使用它们并不是强制的;如果它们不能解决你遇到的问题,可以完全忽略它们。与Icon相比,Python接口的一个新颖特性是生成器的状态表示为一个具体的对象(迭代器),可以传递给其他函数或存储在数据结构中。"
294
295
295
296
#: ../../whatsnew/2.3.rst:248
296
297
msgid ":pep:`255` - Simple Generators"
@@ -316,6 +317,7 @@ msgid ""
316
317
"comment in the first or second line of the source file. For example, a "
317
318
"UTF-8 file can be declared with::"
318
319
msgstr ""
320
+ "现在可以声明Python源文件使用不同的字符集编码。通过在源文件的第一行或第二行包含特定格式的注释来声明编码。例如,一个UTF-8文件可以这样声明:"
319
321
320
322
#: ../../whatsnew/2.3.rst:267
321
323
msgid ""
@@ -325,6 +327,8 @@ msgid ""
325
327
":exc:`DeprecationWarning` being signalled by Python 2.3; in 2.4 this will be"
326
328
" a syntax error."
327
329
msgstr ""
330
+ "如果没有这样的编码声明,默认使用7位ASCII编码。执行或导入包含8位字符的字符串字面量且没有编码声明的模块时,在Python 2.3中会触发 "
331
+ ":exc:`DeprecationWarning` 警告;而在Python 2.4中,这将成为语法错误"
328
332
329
333
#: ../../whatsnew/2.3.rst:273
330
334
msgid ""
@@ -333,6 +337,7 @@ msgid ""
333
337
"identifiers are still restricted to ASCII characters, so you can't have "
334
338
"variable names that use characters outside of the usual alphanumerics."
335
339
msgstr ""
340
+ "编码声明只影响Unicode字符串字面量,这些字面量将使用指定的编码转换为Unicode。请注意,Python的标识符仍然限制为ASCII字符,因此变量名不能使用超出常规字母数字字符范围的字符。"
336
341
337
342
#: ../../whatsnew/2.3.rst:282
338
343
msgid ":pep:`263` - Defining Python Source Code Encodings"
0 commit comments