Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57b4921

Browse files
[po] auto sync
1 parent 623dc34 commit 57b4921

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

tutorial/classes.po

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# Zombie110year <[email protected]>, 2020
99
# ww song <[email protected]>, 2020
1010
# eric R <[email protected]>, 2020
11-
# Junkai Shao <[email protected]>, 2020
1211
# zkonge <[email protected]>, 2020
1312
# nick <[email protected]>, 2020
1413
# Freesand Leo <[email protected]>, 2020
@@ -109,8 +108,11 @@ msgid ""
109108
"the caller will see the change --- this eliminates the need for two "
110109
"different argument passing mechanisms as in Pascal."
111110
msgstr ""
112-
"对象具有个性,多个名称(在多个作用域内)可以绑定到同一个对象。这在其他语言中称为别名。乍一看Python时通常不会理解这一点,在处理不可变的基本类型(数字,字符串,元组)时可以安全地忽略它。但是,别名对涉及可变对象,如列表,字典和大多数其他类型,的Python代码的语义可能会产生惊人的影响。这通常用于程序的好处,因为别名在某些方面表现得像指针。例如,传递一个对象很便宜,因为实现只传递一个指针;如果函数修改了作为参数传递的对象,调用者将看到更改"
113-
" --- 这就不需要像 Pascal 中那样使用两个不同的参数传递机制。"
111+
"对象具有个性,多个名称(在多个作用域内)可以绑定到同一个对象。 这在其他语言中称为别名。 乍一看 Python "
112+
"时通常不会理解这一点,在处理不可变的基本类型(数字,字符串,元组)时可以安全地忽略它。 但是,别名对涉及可变对象,如列表,字典和大多数其他类型的 "
113+
"Python 代码的语义可能会产生惊人的影响。 通常这样做是为了使程序受益,因为别名在某些方面表现得像指针。 "
114+
"例如,传递一个对象的代价很小,因为实现只传递一个指针;如果函数修改了作为参数传递的对象,调用者将看到更改 --- 这就不需要像 Pascal "
115+
"中那样使用两个不同的参数传递机制。"
114116

115117
#: ../../tutorial/classes.rst:61
116118
msgid "Python Scopes and Namespaces"
@@ -124,7 +126,9 @@ msgid ""
124126
"understand what's going on. Incidentally, knowledge about this subject is "
125127
"useful for any advanced Python programmer."
126128
msgstr ""
127-
"在介绍类之前,我首先要告诉你一些Python的作用域规则。类定义对命名空间有一些巧妙的技巧,你需要知道作用域和命名空间如何工作才能完全理解正在发生的事情。顺便说一下,关于这个主题的知识对任何高级Python程序员都很有用。"
129+
"在介绍类之前,我首先要告诉你一些 Python "
130+
"的作用域规则。类定义对命名空间有一些巧妙的技巧,你需要知道作用域和命名空间如何工作才能完全理解正在发生的事情。顺便说一下,关于这个主题的知识对任何高级 "
131+
"Python 程序员都很有用。"
128132

129133
#: ../../tutorial/classes.rst:69
130134
msgid "Let's begin with some definitions."
@@ -220,7 +224,7 @@ msgid ""
220224
"Although scopes are determined statically, they are used dynamically. At any"
221225
" time during execution, there are 3 or 4 nested scopes whose namespaces are "
222226
"directly accessible:"
223-
msgstr "虽然作用域是静态地确定的,但它们会被动态地使用。 在执行期间的任何时刻,会有 3 或 4 个个命名空间可被直接访问的嵌套作用域:"
227+
msgstr "虽然作用域是静态地确定的,但它们会被动态地使用。 在执行期间的任何时刻,会有 3 或 4 个命名空间可被直接访问的嵌套作用域:"
224228

225229
#: ../../tutorial/classes.rst:120
226230
msgid "the innermost scope, which is searched first, contains the local names"
@@ -822,7 +826,7 @@ msgstr "多重继承"
822826
msgid ""
823827
"Python supports a form of multiple inheritance as well. A class definition "
824828
"with multiple base classes looks like this::"
825-
msgstr "Python也支持一种多重继承。 带有多个基类的类定义语句如下所示::"
829+
msgstr "Python 也支持一种多重继承。 带有多个基类的类定义语句如下所示::"
826830

827831
#: ../../tutorial/classes.rst:644
828832
msgid ""
@@ -1075,7 +1079,7 @@ msgid ""
10751079
" compact but less versatile than full generator definitions and tend to be "
10761080
"more memory friendly than equivalent list comprehensions."
10771081
msgstr ""
1078-
"某些简单的生成器可以写成简洁的表达式代码,所用语法类似列表推导式,将外层为圆括号而非方括号。 这种表达式被设计用于生成器将立即被外层函数所使用的情况。 "
1082+
"某些简单的生成器可以写成简洁的表达式代码,所用语法类似列表推导式,但外层为圆括号而非方括号。 这种表达式被设计用于生成器将立即被外层函数所使用的情况。 "
10791083
"生成器表达式相比完整的生成器更紧凑但较不灵活,相比等效的列表推导式则更为节省内存。"
10801084

10811085
#: ../../tutorial/classes.rst:901

0 commit comments

Comments
 (0)