@@ -486,19 +486,19 @@ msgstr "``:lines`` metadata: 文章消息体的行数"
486486#: ../../library/nntplib.rst:387
487487msgid ""
488488"The value of each item is either a string, or :const:`None` if not present."
489- msgstr ""
489+ msgstr "每个条目的值或者为字符串,或者在没有值时为 :const:`None`。 "
490490
491491#: ../../library/nntplib.rst:389
492492msgid ""
493493"It is advisable to use the :func:`decode_header` function on header values "
494494"when they may contain non-ASCII characters::"
495- msgstr ""
495+ msgstr "建议在标头值可能包含非 ASCII 字符的时候对其使用 :func:`decode_header` 函数:: "
496496
497497#: ../../library/nntplib.rst:409
498498msgid ""
499499"Send a ``HELP`` command. Return a pair ``(response, list)`` where *list* is"
500500" a list of help strings."
501- msgstr ""
501+ msgstr "发送 ``HELP`` 命令。 返回一个 ``(response, list)`` 对,其中 *list* 为帮助字符串列表。 "
502502
503503#: ../../library/nntplib.rst:415
504504msgid ""
@@ -508,14 +508,17 @@ msgid ""
508508"current group is considered. Return a triple ``(response, number, id)`` "
509509"where *number* is the article number and *id* is the message id."
510510msgstr ""
511+ "发送 ``STAT`` 命令,其中 *message_spec* 为消息 ID (包裹在 ``'<'`` 和 ``'>'`` 中) "
512+ "或者当前新闻组中的文章编号。 如果 *message_spec* 被省略或为 :const:`None`,则会选择当前新闻组中的当前文章。 "
513+ "反回一个三元组 ``(response, number, id)``,其中 *number* 为文章编号而 *id* 为消息 ID。"
511514
512515#: ../../library/nntplib.rst:429
513516msgid "Send a ``NEXT`` command. Return as for :meth:`.stat`."
514- msgstr ""
517+ msgstr "发送 ``NEXT`` 命令。 返回与 :meth:`.stat` 类似的结果。 "
515518
516519#: ../../library/nntplib.rst:434
517520msgid "Send a ``LAST`` command. Return as for :meth:`.stat`."
518- msgstr ""
521+ msgstr "发送 ``LAST`` 命令。 返回与 :meth:`.stat` 类似的结果。 "
519522
520523#: ../../library/nntplib.rst:439
521524msgid ""
@@ -527,20 +530,28 @@ msgid ""
527530"message id as a string, and *lines* a list of lines (without terminating "
528531"newlines) comprising the raw message including headers and body."
529532msgstr ""
533+ "发送 ``ARTICLE`` 命令,其中 *message_spec* 的含义与 :meth:`.stat` 中的相同。 返回一个元组 "
534+ "``(response, info)``,其中 *info* 是一个 :class:`~collections.namedtuple`,包含三个属性 "
535+ "*number*, *message_id* 和 *lines* (按此顺序)。 *number* 是新闻组中的文章数量 (或者如果该信息不可用则为 "
536+ "0),*message_id* 为字符串形式的消息 ID,而 *lines* 为由包括标头和消息体的原始消息的行组成的列表 (不带末尾换行符)。"
530537
531538#: ../../library/nntplib.rst:464
532539msgid ""
533540"Same as :meth:`article()`, but sends a ``HEAD`` command. The *lines* "
534541"returned (or written to *file*) will only contain the message headers, not "
535542"the body."
536543msgstr ""
544+ "与 :meth:`article()` 类似,但会发送 ``HEAD`` 命令。 返回的 *lines* (或写入到 *file*) "
545+ "将只包含消息标头,不包含消息体。"
537546
538547#: ../../library/nntplib.rst:471
539548msgid ""
540549"Same as :meth:`article()`, but sends a ``BODY`` command. The *lines* "
541550"returned (or written to *file*) will only contain the message body, not the "
542551"headers."
543552msgstr ""
553+ "与 :meth:`article()` 类似,但会发送 ``BODY`` 命令。 返回的 *lines* (或写入到 *file*) "
554+ "将只包含消息体,不包含标头。"
544555
545556#: ../../library/nntplib.rst:478
546557msgid ""
@@ -551,6 +562,9 @@ msgid ""
551562":meth:`post` method automatically escapes lines beginning with ``.`` and "
552563"appends the termination line."
553564msgstr ""
565+ "使用 ``POST`` 命令发布文章。 *data* 参数是以二进制读取模式打开的 :term:`file "
566+ "object`,或是任意包含字节串对象的可迭代对象 (表示要发布的文章的原始行数据)。 它应当代表一篇适当格式的新闻组文章,包含所需的标头。 "
567+ ":meth:`post` 方法会自动对以 ``.`` 打头的行数据进行转义并添加结束行。"
554568
555569#: ../../library/nntplib.rst:485
556570msgid ""
0 commit comments