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