File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -687,13 +687,16 @@ msgid ""
687687"__ (double underscore --- not to be confused with _, the single underscore "
688688"used as a synonym/alias for :func:`gettext.gettext` or its brethren)."
689689msgstr ""
690+ "上述两个类均可代替格式串,使得能用 {}- 或 $-formatting 构建最终的“日志信息”部分,这些信息将出现在格式化后的日志输出中,替换 "
691+ "%(message)s 或“{message}”或“$message”。每次写入日志时都要使用类名,有点不大实用,但如果用上 __ "
692+ "之类的别名就相当合适了(双下划线 --- 不要与 _ 混淆,单下划线用作 :func:`gettext.gettext` 或相关函数的同义词/别名 )。"
690693
691694#: ../../howto/logging-cookbook.rst:1143
692695msgid ""
693696"The above classes are not included in Python, though they're easy enough to "
694697"copy and paste into your own code. They can be used as follows (assuming "
695698"that they're declared in a module called ``wherever``):"
696- msgstr ""
699+ msgstr "Python 并没有上述两个类,当然复制粘贴到自己的代码中也很容易。用法可如下所示(假定在名为 ``wherever`` 的模块中声明): "
697700
698701#: ../../howto/logging-cookbook.rst:1165
699702msgid ""
You can’t perform that action at this time.
0 commit comments