8899# Yi Cao <[email protected] >, 20191010# Arisaka97 <[email protected] >, 202011+ # Freesand Leo <[email protected] >, 20201112#
1213#, fuzzy
1314msgid ""
@@ -16,7 +17,7 @@ msgstr ""
1617"Report-Msgid-Bugs-To : \n "
1718"POT-Creation-Date : 2020-04-10 22:51+0000\n "
1819"PO-Revision-Date : 2019-09-01 03:20+0000\n "
19- "Last-Translator : Arisaka97 <solitaire2312@gmail .com>, 2020\n "
20+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2020\n "
2021"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2122"MIME-Version : 1.0\n "
2223"Content-Type : text/plain; charset=UTF-8\n "
@@ -125,7 +126,7 @@ msgstr ""
125126
126127#: ../../library/ftplib.rst:108
127128msgid "Here's a sample session using the :class:`FTP_TLS` class::"
128- msgstr ""
129+ msgstr "以下是使用 :class:`FTP_TLS` 类的会话示例:: "
129130
130131#: ../../library/ftplib.rst:121
131132msgid "Exception raised when an unexpected reply is received from the server."
@@ -231,6 +232,11 @@ msgid ""
231232"FTP commands are only allowed after the client has logged in. The *acct* "
232233"parameter supplies \" accounting information\" ; few systems implement this."
233234msgstr ""
235+ "以 *user* 的身份登录。*passwd* 和 *acct* 是可选参数,默认为空字符串。如果没有指定 *user*,则默认为 "
236+ "``'anonymous'``。如果 *user* 为 ``'anonymous'``,那么默认的 *passwd* 是 "
237+ "``'anonymous@'``。连接建立后,每个实例只应调用一次本函数;如果在创建实例时传入了 host 和 "
238+ "user,则完全不应该调用本函数。在客户端登录后,才允许执行大多数 FTP 命令。*acct* 参数提供记账信息 (\" accounting "
239+ "information\" );仅少数系统实现了该特性。"
234240
235241#: ../../library/ftplib.rst:219
236242msgid ""
@@ -261,6 +267,10 @@ msgid ""
261267"*callback*). A reasonable default is chosen. *rest* means the same thing as"
262268" in the :meth:`transfercmd` method."
263269msgstr ""
270+ "以二进制传输模式下载文件。*cmd* 应为恰当的 ``RETR`` 命令:``'RETR 文件名'``。*callback* "
271+ "函数会在收到每个数据块时调用,传入的参数是表示数据块的一个字节。为执行实际传输,创建了底层套接字对象,可选参数 *blocksize* "
272+ "指定了读取该对象时的最大块大小(这也是传入 *callback* 的数据块的最大大小)。已经选择了合理的默认值。*rest* 的含义与 "
273+ ":meth:`transfercmd` 方法中的含义相同。"
264274
265275#: ../../library/ftplib.rst:249
266276msgid ""
@@ -290,6 +300,11 @@ msgid ""
290300"after it is sent. *rest* means the same thing as in the :meth:`transfercmd` "
291301"method."
292302msgstr ""
303+ "以二进制传输模式存储文件。 *cmd* 应为恰当的 ``STOR`` 命令: ``\" STOR filename\" ``。*fp* 是一个 "
304+ ":term:`文件对象 <file object>` (以二进制模式打开),将使用它的 :meth:`~io.IOBase.read` "
305+ "方法读取它,用于提供要存储的数据,直到遇到 EOF,读取时的块大小为 *blocksize*。 参数 *blocksize* 的默认值为 8192。 "
306+ "可选参数 *callback* 是单参数函数,在每个数据块发送后都会用该数据块调用它。*rest* 的含义与 :meth:`transfercmd` "
307+ "方法中的含义相同。"
293308
294309#: ../../library/ftplib.rst:275
295310msgid "*rest* parameter added."
@@ -348,6 +363,10 @@ msgid ""
348363"about the file name. Content of this dictionary might be limited by the "
349364"*facts* argument but server is not guaranteed to return all requested facts."
350365msgstr ""
366+ "使用 ``MLSD`` 命令以标准格式列出目录内容 (:rfc:`3659`)。如果省略 *path* 则使用当前目录。*facts* "
367+ "是字符串列表,表示所需的信息类型(如 ``[\" type\" , \" size\" , \" perm\" ]``)。返回一个生成器对象,每个在 path "
368+ "中找到的文件都将在该对象中生成两个元素的元组。第一个元素是文件名,第二个元素是该文件的 facts 的字典。该字典的内容受 *facts* "
369+ "参数限制,但不能保证服务器会返回所有请求的 facts。"
351370
352371#: ../../library/ftplib.rst:332
353372msgid ""
@@ -384,11 +403,11 @@ msgstr ""
384403
385404#: ../../library/ftplib.rst:366
386405msgid "Set the current directory on the server."
387- msgstr ""
406+ msgstr "设置服务器端的当前目录。 "
388407
389408#: ../../library/ftplib.rst:371
390409msgid "Create a new directory on the server."
391- msgstr ""
410+ msgstr "在服务器上创建一个新目录。 "
392411
393412#: ../../library/ftplib.rst:376
394413msgid "Return the pathname of the current directory on the server."
0 commit comments