8899# Meng Du <[email protected] >, 20191010# MuSheng Chen <[email protected] >, 201911- # Freesand Leo <[email protected] >, 2019121112+ # Freesand Leo <[email protected] >, 20191313#
1414#, fuzzy
1515msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818"Report-Msgid-Bugs-To : \n "
1919"POT-Creation-Date : 2019-01-01 10:14+0900\n "
2020"PO-Revision-Date : 2017-02-16 17:45+0000\n "
21- "Last-Translator : 非法操作 <ultrahe@gmail .com>, 2019\n "
21+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2019\n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2323"MIME-Version : 1.0\n "
2424"Content-Type : text/plain; charset=UTF-8\n "
@@ -579,7 +579,7 @@ msgstr "显然,这个例子将日志长度设置得太小,这是一个极端
579579
580580#: ../../howto/logging-cookbook.rst:1013
581581msgid "Use of alternative formatting styles"
582- msgstr ""
582+ msgstr "使用其他日志格式化方式 "
583583
584584#: ../../howto/logging-cookbook.rst:1015
585585msgid ""
@@ -589,8 +589,9 @@ msgid ""
589589":class:`string.Template` (added in Python 2.4) and :meth:`str.format` (added"
590590" in Python 2.6)."
591591msgstr ""
592- "当日志模块被添加至Python标准库时,只有一种格式化消息内容的方法即%-formatting。从那时起,Python就已经有两种格式化方法,:class:`string.Template`"
593- " (在Python2.4中添加)和:meth:`str.format`(在Python2.6中添加)。"
592+ "当日志模块被添加至 Python 标准库时,只有一种格式化消息内容的方法即 %-formatting。 在那之后,Python 又增加了两种格式化方法:"
593+ " :class:`string.Template` (在 Python 2.4 中新增) 和 :meth:`str.format` (在 Python "
594+ "2.6 中新增)。"
594595
595596#: ../../howto/logging-cookbook.rst:1021
596597msgid ""
@@ -604,17 +605,17 @@ msgid ""
604605":meth:`str.format` or :class:`string.Template`. Here's an example console "
605606"session to show the possibilities:"
606607msgstr ""
607- "日志(截至3.2 )为这两种格式化方式提供了更多支持。:class:`Formatter` "
608- "类可以添加一个额外的可选关键字参数 ``style``。它的默认值是 ``'%'``,其他的值 "
609- "``'{'``和``'$'`` 也支持,对应了其他两种格式化样式。其保持了向后兼容(如您所愿),但通过显示指定样式参数,你可以指定格式化字符串的方式是使用"
610- " :meth:`str.format` 或 :class:`string.Template`。这里是一个控制台会话的示例,展示了这些方式:"
608+ "日志(从 3.2 开始 )为这两种格式化方式提供了更多支持。:class:`Formatter` 类可以添加一个额外的可选关键字参数 "
609+ "``style``。它的默认值是 ``'%'``,其他的值 ``'{'`` 和 ``'$'`` "
610+ "也支持,对应了其他两种格式化样式。其保持了向后兼容(如您所愿),但通过显示指定样式参数,你可以指定格式化字符串的方式是使用 "
611+ ":meth:`str.format` 或 :class:`string.Template`。 这里是一个控制台会话的示例,展示了这些方式:"
611612
612613#: ../../howto/logging-cookbook.rst:1055
613614msgid ""
614615"Note that the formatting of logging messages for final output to logs is "
615616"completely independent of how an individual logging message is constructed. "
616617"That can still use %-formatting, as shown here::"
617- msgstr "请注意,最终输出到日志的消息格式完全独立于单条日志消息的构造方式。 它仍然可以使用% -formatting,如下所示: "
618+ msgstr "请注意最终输出到日志的消息格式完全独立于单条日志消息的构造方式。 它仍然可以使用 % -formatting,如下所示:: "
618619
619620#: ../../howto/logging-cookbook.rst:1063
620621msgid ""
0 commit comments