@@ -15,7 +15,7 @@ msgid ""
1515msgstr ""
1616"Project-Id-Version : Python 3.9\n "
1717"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 "
1919"PO-Revision-Date : 2017-02-16 23:42+0000\n "
2020"
Last-Translator :
Rafael Fontenelle <[email protected] >, 2024\n "
2121"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -291,6 +291,7 @@ msgid ""
291291"as a concrete object (the iterator) that can be passed around to other "
292292"functions or stored in a data structure."
293293msgstr ""
294+ "Python并不像Icon那样将生成器作为核心概念来采用。生成器被视为Python核心语言的一部分,但学习或使用它们并不是强制的;如果它们不能解决你遇到的问题,可以完全忽略它们。与Icon相比,Python接口的一个新颖特性是生成器的状态表示为一个具体的对象(迭代器),可以传递给其他函数或存储在数据结构中。"
294295
295296#: ../../whatsnew/2.3.rst:248
296297msgid ":pep:`255` - Simple Generators"
@@ -316,6 +317,7 @@ msgid ""
316317"comment in the first or second line of the source file. For example, a "
317318"UTF-8 file can be declared with::"
318319msgstr ""
320+ "现在可以声明Python源文件使用不同的字符集编码。通过在源文件的第一行或第二行包含特定格式的注释来声明编码。例如,一个UTF-8文件可以这样声明:"
319321
320322#: ../../whatsnew/2.3.rst:267
321323msgid ""
@@ -325,6 +327,8 @@ msgid ""
325327":exc:`DeprecationWarning` being signalled by Python 2.3; in 2.4 this will be"
326328" a syntax error."
327329msgstr ""
330+ "如果没有这样的编码声明,默认使用7位ASCII编码。执行或导入包含8位字符的字符串字面量且没有编码声明的模块时,在Python 2.3中会触发 "
331+ ":exc:`DeprecationWarning` 警告;而在Python 2.4中,这将成为语法错误"
328332
329333#: ../../whatsnew/2.3.rst:273
330334msgid ""
@@ -333,6 +337,7 @@ msgid ""
333337"identifiers are still restricted to ASCII characters, so you can't have "
334338"variable names that use characters outside of the usual alphanumerics."
335339msgstr ""
340+ "编码声明只影响Unicode字符串字面量,这些字面量将使用指定的编码转换为Unicode。请注意,Python的标识符仍然限制为ASCII字符,因此变量名不能使用超出常规字母数字字符范围的字符。"
336341
337342#: ../../whatsnew/2.3.rst:282
338343msgid ":pep:`263` - Defining Python Source Code Encodings"
0 commit comments