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

Skip to content

Commit fe509f5

Browse files
committed
[po] auto sync bot
1 parent 3d96ed2 commit fe509f5

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

faq/programming.po

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1597,11 +1597,11 @@ msgstr "如何按其他列表中的值对一个列表进行排序?"
15971597
msgid ""
15981598
"Merge them into an iterator of tuples, sort the resulting list, and then "
15991599
"pick out the element you want. ::"
1600-
msgstr ""
1600+
msgstr "将它们合并到元组的迭代器中,对结果列表进行排序,然后选择所需的元素。"
16011601

16021602
#: ../../faq/programming.rst:1386
16031603
msgid "An alternative for the last step is::"
1604-
msgstr ""
1604+
msgstr "最后一步的替代方案是::"
16051605

16061606
#: ../../faq/programming.rst:1391
16071607
msgid ""
@@ -1629,6 +1629,7 @@ msgid ""
16291629
"which embody both the data (attributes) and code (methods) specific to a "
16301630
"datatype."
16311631
msgstr ""
1632+
"``类`` 是通过执行类语句创建的特定对象类型。``类对象`` 被当作模板来创建实例对象,实例对象包含了特定于数据类型的数据(属性)和代码(方法)。"
16321633

16331634
#: ../../faq/programming.rst:1410
16341635
msgid ""
@@ -1639,17 +1640,20 @@ msgid ""
16391640
"for a mailbox, and subclasses such as ``MboxMailbox``, ``MaildirMailbox``, "
16401641
"``OutlookMailbox`` that handle various specific mailbox formats."
16411642
msgstr ""
1643+
"类可以基于一个或多个的其他类,称之为基类(ES),它继承基类的属性和方法,这样就可以通过继承来连续地细化对象模型。例如:您可能有一个 "
1644+
"``Mailbox`` 类提供邮箱的基本访问方法.,它的子类 ``MboxMailbox``, ``MaildirMailbox``, "
1645+
"``OutlookMailbox`` 用于处理各种特定邮箱格式。"
16421646

16431647
#: ../../faq/programming.rst:1419
16441648
msgid "What is a method?"
1645-
msgstr ""
1649+
msgstr "什么是方法?"
16461650

16471651
#: ../../faq/programming.rst:1421
16481652
msgid ""
16491653
"A method is a function on some object ``x`` that you normally call as "
16501654
"``x.name(arguments...)``. Methods are defined as functions inside the class"
16511655
" definition::"
1652-
msgstr ""
1656+
msgstr "``方法`` 实际上就是类定义中的函数。对于某个对象 ``x`` 上的方法,通常称为 ``x.name(arguments...)`` 。"
16531657

16541658
#: ../../faq/programming.rst:1431
16551659
msgid "What is self?"
@@ -1662,6 +1666,8 @@ msgid ""
16621666
" c)`` for some instance ``x`` of the class in which the definition occurs; "
16631667
"the called method will think it is called as ``meth(x, a, b, c)``."
16641668
msgstr ""
1669+
"Self 只是 ``方法`` 的第一个参数的常规名称。例如:对于某个类的某个实例 ``x`` ,其方法 ``meth(self, a, b, c)`` "
1670+
"实际上应该被称为 ``x.meth(a, b, c)`` ;对于被调用的方法会被称为 ``meth(x, a, b, c)`` 。"
16651671

16661672
#: ../../faq/programming.rst:1438
16671673
msgid "See also :ref:`why-self`."
@@ -2180,7 +2186,7 @@ msgstr ""
21802186
msgid ""
21812187
"When I edit an imported module and reimport it, the changes don't show up. "
21822188
"Why does this happen?"
2183-
msgstr "当我编辑导入的模块并重新导入它时,更改不会显示。为什么会这样?"
2189+
msgstr "当我编辑了导入过的模块并重新导入它时,这些变化没有显示出来。为什么会这样?"
21842190

21852191
#: ../../faq/programming.rst:1869
21862192
msgid ""

library/importlib.po

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# leollon <[email protected]>, 2019
1212
# Freesand Leo <[email protected]>, 2019
1313
# Shengjing Zhu <[email protected]>, 2019
14+
# Yixin Qian <[email protected]>, 2019
1415
#
1516
#, fuzzy
1617
msgid ""
@@ -19,7 +20,7 @@ msgstr ""
1920
"Report-Msgid-Bugs-To: \n"
2021
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
2122
"PO-Revision-Date: 2017-02-16 23:15+0000\n"
22-
"Last-Translator: Shengjing Zhu <zsj950618@gmail.com>, 2019\n"
23+
"Last-Translator: Yixin Qian <qianyixin1992@gmail.com>, 2019\n"
2324
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
2425
"MIME-Version: 1.0\n"
2526
"Content-Type: text/plain; charset=UTF-8\n"
@@ -763,6 +764,9 @@ msgid ""
763764
"does not matter if the package and its data file(s) are stored in a e.g. zip"
764765
" file versus on the file system."
765766
msgstr ""
767+
"从这个抽象基类的视角出发,*resource* 指一个包附带的二进制文件。常见的如在包的 ``__init__.py`` "
768+
"文件旁的数据文件。这个类存在的目的是为了将对数据文件的访问进行抽象,这样包就和其数据文件的存储方式无关了。不论这些文件是存放在一个 zip "
769+
"文件里还是直接在文件系统内。"
766770

767771
#: ../../library/importlib.rst:491
768772
msgid ""
@@ -775,6 +779,9 @@ msgid ""
775779
" class are expected to directly correlate to a specific package (instead of "
776780
"potentially representing multiple packages or a module)."
777781
msgstr ""
782+
"对于该类中的任一方法,*resource* 参数的值都需要是一个表示文件名称的 :term:`路径类对象`。这意味着任何子文件夹的路径都不该出现在 "
783+
"*resouce* "
784+
"参数值内。因为对于阅读器而言,包的位置就代表着「文件夹」路径。与inwei,文件夹和文件名就分别代表包和资源,这也是该类的实例都需要和一个包直接关联(而不是潜在指代很多包或者一整个模块)的原因。"
778785

779786
#: ../../library/importlib.rst:502
780787
msgid ""
@@ -785,6 +792,9 @@ msgid ""
785792
" with this ABC should only be returned when the specified module is a "
786793
"package."
787794
msgstr ""
795+
"加载 resource 的各类加载器需要提供一个名为 ``get_resource_loader(fullname)`` "
796+
"的方法以返回一个视线了改抽象基类接口的对象。如果 fullname 参数指定的模块不是一个包,该方法应返回 "
797+
":const:`None`。只有在指定模块是一个包的情况下,该方法才应当返回一个和该抽象基类兼容的对象。"
788798

789799
#: ../../library/importlib.rst:513
790800
msgid ""

0 commit comments

Comments
 (0)