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

Skip to content

Commit 8a2784f

Browse files
committed
[po] auto sync bot
1 parent 1f78f26 commit 8a2784f

5 files changed

Lines changed: 77 additions & 26 deletions

File tree

c-api/init.po

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Translators:
77
# Freesand Leo <[email protected]>, 2019
88
# Trim21 <[email protected]>, 2019
9+
# Zombie110year <[email protected]>, 2019
910
#
1011
#, fuzzy
1112
msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415
"Report-Msgid-Bugs-To: \n"
1516
"POT-Creation-Date: 2019-04-02 11:41+0900\n"
1617
"PO-Revision-Date: 2017-02-16 17:36+0000\n"
17-
"Last-Translator: Trim21 <[email protected]>, 2019\n"
18+
"Last-Translator: Zombie110year <[email protected]>, 2019\n"
1819
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1750,7 +1751,7 @@ msgstr ""
17501751

17511752
#: ../../c-api/init.rst:1494
17521753
msgid "Methods"
1753-
msgstr ""
1754+
msgstr "方法"
17541755

17551756
#: ../../c-api/init.rst:1496
17561757
msgid ""

faq/design.po

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ msgid ""
217217
msgstr ""
218218
"其次,这意味着如果要显式引用或从特定类调用该方法,不需要特殊语法。 在 C++ 中,如果你想使用在派生类中重写基类中的方法,你必须使用 ``::`` "
219219
"运算符 -- 在 Python 中你可以编写 ``baseclass.methodname(self, <argument list>)``。 这对于 "
220-
":meth:`__init__` 方法特别有用,通常在其中派生类方法想要扩展同名的基类方法,而必须以某种方式调用基类方法时。"
220+
":meth:`__init__` 方法非常有用,特别是在派生类方法想要扩展同名的基类方法,而必须以某种方式调用基类方法时。"
221221

222222
#: ../../faq/design.rst:134
223223
msgid ""
@@ -266,7 +266,7 @@ msgid ""
266266
"The error is a simple typo: ``x = 0``, which assigns 0 to the variable "
267267
"``x``, was written while the comparison ``x == 0`` is certainly what was "
268268
"intended."
269-
msgstr ""
269+
msgstr "错误是一个简单的错字:``x = 0``,将0赋给变量``x``,而比较``x == 0``肯定是可以预期的。"
270270

271271
#: ../../faq/design.rst:183
272272
msgid ""
@@ -276,6 +276,8 @@ msgid ""
276276
"proper meaning to a human reader who has not yet been introduced to the "
277277
"construct."
278278
msgstr ""
279+
"已经有许多替代方案提案。 "
280+
"大多数是黑客提交的,目的是少打一些字,但使用任意或隐含的语法或关键词,并不符合语言变更提案的简单标准:它应该直观地向尚未被介绍到这一概念的人类读者提供正确的含义。"
279281

280282
#: ../../faq/design.rst:188
281283
msgid ""
@@ -284,12 +286,14 @@ msgid ""
284286
"assignment in expression construct much; it's only newcomers who express a "
285287
"strong desire to add this to the language."
286288
msgstr ""
289+
"一个有趣的现象是,大多数有经验的Python程序员都认识到``while True``的习惯用法,也不太在意是否能在表达式构造中赋值; "
290+
"只有新人表达了强烈的愿望希望将其添加到语言中。"
287291

288292
#: ../../faq/design.rst:193
289293
msgid ""
290294
"There's an alternative way of spelling this that seems attractive but is "
291295
"generally less robust than the \"while True\" solution::"
292-
msgstr ""
296+
msgstr "有一种替代的拼写方式看起来很有吸引力,但通常不如\"while True\"解决方案可靠:"
293297

294298
#: ../../faq/design.rst:201
295299
msgid ""
@@ -298,23 +302,27 @@ msgid ""
298302
" you have to remember to change two places in your program -- the second "
299303
"occurrence is hidden at the bottom of the loop."
300304
msgstr ""
305+
"问题在于,如果你改变主意(例如你想把它改成``sys.stdin.readline()``),如何知道下一行。你必须记住改变程序中的两个地方 -- "
306+
"第二次出现隐藏在循环的底部。"
301307

302308
#: ../../faq/design.rst:206
303309
msgid ""
304310
"The best approach is to use iterators, making it possible to loop through "
305311
"objects using the ``for`` statement. For example, :term:`file objects <file"
306312
" object>` support the iterator protocol, so you can write simply::"
307313
msgstr ""
314+
"最好的方法是使用迭代器,使用``for``语句循环遍历对象。 例如,:term:`file objects ` <file object> ` "
315+
"支持迭代器协议, 因此可以简单地写为:"
308316

309317
#: ../../faq/design.rst:216
310318
msgid ""
311319
"Why does Python use methods for some functionality (e.g. list.index()) but "
312320
"functions for other (e.g. len(list))?"
313-
msgstr ""
321+
msgstr "为什么Python对某些功能(例如list.index()使用方法来实现,而其他功能(例如len(List)使用函数实现?"
314322

315323
#: ../../faq/design.rst:218
316324
msgid "As Guido said:"
317-
msgstr ""
325+
msgstr "正如Guido所说:"
318326

319327
#: ../../faq/design.rst:220
320328
msgid ""
@@ -324,6 +332,8 @@ msgid ""
324332
"problem. Compare the easy with which we rewrite a formula like x*(a+b) into "
325333
"x*a + x*b to the clumsiness of doing the same thing using a raw OO notation."
326334
msgstr ""
335+
"(a) 对于某些操作,前缀表示法比后缀更容易阅读 -- "
336+
"前缀(和中缀!)运算在数学中有着悠久的传统,就像在视觉上帮助数学家思考问题的记法。比较一下我们将x*(a+b)这样的公式改写为x*a+x*b的容易程度,以及使用原始OO符号做相同事情的笨拙程度。"
327337

328338
#: ../../faq/design.rst:227
329339
msgid ""
@@ -336,15 +346,18 @@ msgid ""
336346
"implementing a mapping has a get() or keys() method, or something that isn't"
337347
" a file has a write() method."
338348
msgstr ""
349+
"(b) "
350+
"当读到写有len(X)的代码时,就知道它要求的是某件东西的长度。这告诉我们两件事:结果是一个整数,参数是某种容器。相反,当阅读x.len()时,必须已经知道x是某种实现接口的容器,或者是从具有标准len()的类继承的容器。当没有实现映射的类有get()或key()方法,或者不是文件的类有write()方法时,我们偶尔会感到困惑。"
339351

340352
#: ../../faq/design.rst:254
341353
msgid ""
342354
"https://mail.python.org/pipermail/python-3000/2006-November/004643.html"
343355
msgstr ""
356+
"https://mail.python.org/pipermail/python-3000/2006-November/004643.html"
344357

345358
#: ../../faq/design.rst:240
346359
msgid "Why is join() a string method instead of a list or tuple method?"
347-
msgstr ""
360+
msgstr "为什么 join()是一个字符串方法而不是列表或元组方法?"
348361

349362
#: ../../faq/design.rst:242
350363
msgid ""
@@ -354,14 +367,16 @@ msgid ""
354367
"methods have been widely accepted, but the one which appears to make some "
355368
"programmers feel uncomfortable is::"
356369
msgstr ""
370+
"从Python "
371+
"1.6开始,字符串变得更像其他标准类型,当添加方法时,这些方法提供的功能与始终使用String模块的函数时提供的功能相同。这些新方法中的大多数已被广泛接受,但似乎让一些程序员感到不舒服的一种方法是:"
357372

358373
#: ../../faq/design.rst:250
359374
msgid "which gives the result::"
360-
msgstr ""
375+
msgstr "给出结果::"
361376

362377
#: ../../faq/design.rst:254
363378
msgid "There are two common arguments against this usage."
364-
msgstr ""
379+
msgstr "反对这种用法有两个常见的论点。"
365380

366381
#: ../../faq/design.rst:256
367382
msgid ""
@@ -371,6 +386,8 @@ msgid ""
371386
" on names bound to strings there is no logical reason to make them "
372387
"unavailable on literals."
373388
msgstr ""
389+
"第一条是这样的:“使用字符串文本(String "
390+
"Constant)的方法看起来真的很难看”,答案是也许吧,但是字符串文本只是一个固定值。如果在绑定到字符串的名称上允许使用这些方法,则没有逻辑上的理由使其在文字上不可用。"
374391

375392
#: ../../faq/design.rst:262
376393
msgid ""
@@ -380,12 +397,14 @@ msgid ""
380397
":meth:`~str.split` as a string method, since in that case it is easy to see "
381398
"that ::"
382399
msgstr ""
400+
"第二个异议通常是这样的:“我实际上是在告诉序列使用字符串常量将其成员连接在一起”。遗憾的是并非如此。出于某种原因,把:meth:`~str.split`"
401+
" 作为一个字符串方法似乎要容易得多,因为在这种情况下,很容易看到:"
383402

384403
#: ../../faq/design.rst:269
385404
msgid ""
386405
"is an instruction to a string literal to return the substrings delimited by "
387406
"the given separator (or, by default, arbitrary runs of white space)."
388-
msgstr ""
407+
msgstr "是对字符串文本的指令,用于返回由给定分隔符分隔的子字符串(或在默认情况下,返回任意空格)。"
389408

390409
#: ../../faq/design.rst:272
391410
msgid ""

howto/functional.po

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
# Kder <[email protected]>, 2018
1111
# Freesand Leo <[email protected]>, 2018
1212
# yuxin wang <[email protected]>, 2019
13+
# chen_chao <[email protected]>, 2019
1314
#
1415
#, fuzzy
1516
msgid ""
@@ -18,7 +19,7 @@ msgstr ""
1819
"Report-Msgid-Bugs-To: \n"
1920
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
2021
"PO-Revision-Date: 2017-02-16 17:44+0000\n"
21-
"Last-Translator: yuxin wang <wangyuxinwhy@gmail.com>, 2019\n"
22+
"Last-Translator: chen_chao <wenbushi@gmail.com>, 2019\n"
2223
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2324
"MIME-Version: 1.0\n"
2425
"Content-Type: text/plain; charset=UTF-8\n"
@@ -105,6 +106,8 @@ msgid ""
105106
"and Python are languages that support object-oriented programming, but don't"
106107
" force the use of object-oriented features."
107108
msgstr ""
109+
"**面向对象**程序会操作一组对象。 对象拥有内部状态,并能够以某种方式支持请求和修改这个内部状态的方法。Smalltalk 和 JAVA "
110+
"都是面向对象的语言。 C++ 和 Python 支持面向对象编程,但并不强制使用面向对象特性。"
108111

109112
#: ../../howto/functional.rst:41
110113
msgid ""
@@ -114,6 +117,8 @@ msgid ""
114117
"known functional languages include the ML family (Standard ML, OCaml, and "
115118
"other variants) and Haskell."
116119
msgstr ""
120+
"**函数式**编程则将一个问题分解成一系列函数。 理想情况下,函数只接受输入并输出结果,对一个给定的输入也不会有影响输出的内部状态。著名的函数式语言有 "
121+
"ML 家族(Standard ML,Ocaml以及其他变种)和 Haskell。"
117122

118123
#: ../../howto/functional.rst:47
119124
msgid ""
@@ -127,6 +132,10 @@ msgid ""
127132
" GUI might be object-oriented while the processing logic is procedural or "
128133
"functional, for example."
129134
msgstr ""
135+
"一些语言的设计者选择强调一种特定的编程方式。 这通常会让以不同的方式来编写程序变得困难。其他多范式语言则支持几种不同的编程方式。Lisp,C++ 和 "
136+
"Python "
137+
"都是多范式语言;使用这些语言,你可以编写主要为过程式,面向对象或者函数式的程序和函数库。在大型程序中,不同的部分可能会采用不同的方式编写;比如 GUI "
138+
"可能是面向对象的而处理逻辑则是过程式或者函数式。"
130139

131140
#: ../../howto/functional.rst:58
132141
msgid ""
@@ -138,6 +147,7 @@ msgid ""
138147
"Avoiding side effects means not using data structures that get updated as a "
139148
"program runs; every function's output must only depend on its input."
140149
msgstr ""
150+
"在函数式程序里,输入流经一系列函数。每个函数接受输入并输出结果。函数式风格反对使用带有副作用的函数,这些副作用会修改内部状态,或者引起一些无法体现在函数的返回值中的变化。完全不产生副作用的函数被称作“纯函数”。消除副作用意味着不能使用随程序运行而更新的数据结构;每个函数的输出必须只依赖于输入。"
141151

142152
#: ../../howto/functional.rst:66
143153
msgid ""
@@ -149,6 +159,9 @@ msgid ""
149159
"called for their side effects of sending some text to the screen or pausing "
150160
"execution for a second."
151161
msgstr ""
162+
"一些语言对纯洁性要求非常严格,以至于没有像 ``a=3`` 或 ``c = a + b`` 这样的赋值表达式,但是完全消除副作用非常困难。 "
163+
"比如,显示在屏幕上或者写到磁盘文件中都是副作用。举个例子,在 Python 里,调用函数 :func:`print` 或者 "
164+
":func:`time.sleep` 并不会返回有用的结果;它们的用途只在于副作用,向屏幕发送一段文字或暂停一秒钟。"
152165

153166
#: ../../howto/functional.rst:74
154167
msgid ""
@@ -159,6 +172,8 @@ msgid ""
159172
"assignments to local variables, but won't modify global variables or have "
160173
"other side effects."
161174
msgstr ""
175+
"函数式风格的 Python 程序并不会极端到消除所有 I/O "
176+
"或者赋值的程度;相反,他们会提供像函数式一样的接口,但会在内部使用非函数式的特性。比如,函数的实现仍然会使用局部变量,但不会修改全局变量或者有其他副作用。"
162177

163178
#: ../../howto/functional.rst:80
164179
msgid ""
@@ -171,39 +186,41 @@ msgid ""
171186
"approaches by writing functions that take and return instances representing "
172187
"objects in your application (e-mail messages, transactions, etc.)."
173188
msgstr ""
189+
"函数式编程可以被认为是面向对象编程的对立面。对象就像是小胶囊,包裹着内部状态和随之而来的能让你修改这个内部状态的一组调用方法,以及由正确的状态变化所构成的程序。函数式编程希望尽可能地消除状态变化,只和流经函数的数据打交道。在"
190+
" Python 里你可以把两种编程方式结合起来,在你的应用(电子邮件信息,事务处理)中编写接受和返回对象实例的函数。"
174191

175192
#: ../../howto/functional.rst:89
176193
msgid ""
177194
"Functional design may seem like an odd constraint to work under. Why should"
178195
" you avoid objects and side effects? There are theoretical and practical "
179196
"advantages to the functional style:"
180-
msgstr ""
197+
msgstr "函数式设计在工作中看起来是个奇怪的约束。为什么你要消除对象和副作用呢?不过函数式风格有其理论和实践上的优点:"
181198

182199
#: ../../howto/functional.rst:93
183200
msgid "Formal provability."
184-
msgstr ""
201+
msgstr "形式证明。"
185202

186203
#: ../../howto/functional.rst:94
187204
msgid "Modularity."
188-
msgstr ""
205+
msgstr "模块化。"
189206

190207
#: ../../howto/functional.rst:95
191208
msgid "Composability."
192-
msgstr ""
209+
msgstr "组合性。"
193210

194211
#: ../../howto/functional.rst:96
195212
msgid "Ease of debugging and testing."
196-
msgstr ""
213+
msgstr "易于调试和测试。"
197214

198215
#: ../../howto/functional.rst:100
199216
msgid "Formal provability"
200-
msgstr ""
217+
msgstr "形式证明"
201218

202219
#: ../../howto/functional.rst:102
203220
msgid ""
204221
"A theoretical benefit is that it's easier to construct a mathematical proof "
205222
"that a functional program is correct."
206-
msgstr ""
223+
msgstr "一个理论上的优点是,构造数学证明来说明函数式程序是正确的相对更容易些。"
207224

208225
#: ../../howto/functional.rst:105
209226
msgid ""
@@ -214,6 +231,7 @@ msgid ""
214231
"looks right; the goal is instead a rigorous proof that a program produces "
215232
"the right result for all possible inputs."
216233
msgstr ""
234+
"很长时间,研究者们对寻找证明程序正确的数学方法都很感兴趣。这和通过大量输入来测试,并得出程序的输出基本正确,或者阅读一个程序的源代码然后得出代码看起来没问题不同;相反,这里的目标是一个严格的证明,证明程序对所有可能的输入都能给出正确的结果。"
217235

218236
#: ../../howto/functional.rst:112
219237
msgid ""
@@ -225,14 +243,16 @@ msgid ""
225243
"This continues until you reach the end of the program, at which point the "
226244
"invariants should match the desired conditions on the program's output."
227245
msgstr ""
246+
"证明程序正确性所用到的技术是写出**不变量**,也就是对于输入数据和程序中的变量永远为真的特性。然后对每行代码,你说明这行代码执行前的不变量 X 和 Y"
247+
" 以及执行后稍有不同的不变量 X' 和 Y' 为真。如此一直到程序结束,这时候在程序的输出上,不变量应该会与期望的状态一致。"
228248

229249
#: ../../howto/functional.rst:120
230250
msgid ""
231251
"Functional programming's avoidance of assignments arose because assignments "
232252
"are difficult to handle with this technique; assignments can break "
233253
"invariants that were true before the assignment without producing any new "
234254
"invariants that can be propagated onward."
235-
msgstr ""
255+
msgstr "函数式编程之所以要消除赋值,是因为赋值在这个技术中难以处理;赋值可能会破坏赋值前为真的不变量,却并不产生任何可以传递下去的新的不变量。"
236256

237257
#: ../../howto/functional.rst:125
238258
msgid ""
@@ -245,10 +265,14 @@ msgid ""
245265
"the question of verifying the proof; maybe there's an error in it, and you "
246266
"wrongly believe you've proved the program correct."
247267
msgstr ""
268+
"不幸的是,证明程序的正确性很大程度上是经验性质的,而且和 Python "
269+
"软件无关。即使是微不足道的程序都需要几页长的证明;一个中等复杂的程序的正确性证明会非常庞大,而且,极少甚至没有你日常所使用的程序(Python "
270+
"解释器,XML "
271+
"解析器,浏览器)的正确性能够被证明。即使你写出或者生成一个证明,验证证明也会是一个问题;里面可能出了差错,而你错误地相信你证明了程序的正确性。"
248272

249273
#: ../../howto/functional.rst:136
250274
msgid "Modularity"
251-
msgstr ""
275+
msgstr "模块化"
252276

253277
#: ../../howto/functional.rst:138
254278
msgid ""
@@ -258,14 +282,15 @@ msgid ""
258282
"thing than a large function that performs a complicated transformation. "
259283
"Small functions are also easier to read and to check for errors."
260284
msgstr ""
285+
"函数式编程的一个更实用的优点是,它强制你把问题分解成小的方面。因此程序会更加模块化。相对于一个进行了复杂变换的大型函数,一个小的函数更明确,更易于编写。小函数也更易于阅读和检查错误。"
261286

262287
#: ../../howto/functional.rst:146
263288
msgid "Ease of debugging and testing"
264-
msgstr ""
289+
msgstr "易于调试和测试"
265290

266291
#: ../../howto/functional.rst:148
267292
msgid "Testing and debugging a functional-style program is easier."
268-
msgstr ""
293+
msgstr "测试和调试函数式程序相对来说更容易。"
269294

270295
#: ../../howto/functional.rst:150
271296
msgid ""
@@ -275,6 +300,7 @@ msgid ""
275300
"intermediate inputs and outputs to quickly isolate the function that's "
276301
"responsible for a bug."
277302
msgstr ""
303+
"调试很简单是因为函数通常都很小而且清晰明确。当程序无法工作的时候,每个函数都是一个可以检查数据是否正确的接入点。你可以通过查看中间输入和输出迅速找到出错的函数。"
278304

279305
#: ../../howto/functional.rst:155
280306
msgid ""
@@ -283,6 +309,7 @@ msgid ""
283309
"before running a test; instead you only have to synthesize the right input "
284310
"and then check that the output matches expectations."
285311
msgstr ""
312+
"测试更容易是因为每个函数都是单元测试的潜在目标。在执行测试前,函数并不依赖于需要重现的系统状态;相反,你只需要给出正确的输入,然后检查输出是否和期望的结果一致。"
286313

287314
#: ../../howto/functional.rst:162
288315
msgid "Composability"

library/nntplib.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
# This file is distributed under the same license as the Python package.
44
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
55
#
6+
# Translators:
7+
# Zombie110year <[email protected]>, 2019
8+
#
69
#, fuzzy
710
msgid ""
811
msgstr ""
912
"Project-Id-Version: Python 3.7\n"
1013
"Report-Msgid-Bugs-To: \n"
1114
"POT-Creation-Date: 2019-01-03 10:20+0900\n"
1215
"PO-Revision-Date: 2017-02-16 23:20+0000\n"
16+
"Last-Translator: Zombie110year <[email protected]>, 2019\n"
1317
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1418
"MIME-Version: 1.0\n"
1519
"Content-Type: text/plain; charset=UTF-8\n"
@@ -164,7 +168,7 @@ msgstr ""
164168

165169
#: ../../library/nntplib.rst:174
166170
msgid "Methods"
167-
msgstr ""
171+
msgstr "方法"
168172

169173
#: ../../library/nntplib.rst:176
170174
msgid ""

0 commit comments

Comments
 (0)