@@ -364,8 +364,8 @@ msgid ""
364364"``sys.stdout.encoding`` with ``'backslashreplace'`` error handler."
365365msgstr ""
366366"如果 *value* 不是 ``None``,则本函数会将 ``repr(value)`` 打印至 ``sys.stdout``,并将 *value* "
367- "保存在 ``builtins._`` 中。如果 ``repr(value)`` 无法用 ``sys.stdout.errors`` "
368- "错误回调方法(可能较为“严格” )编码为 ``sys.stdout.encoding``,请用 ``'backslashreplace'`` "
367+ "保存在 ``builtins._`` 中。如果 ``repr(value)`` 无法用 ``sys.stdout.errors`` 错误回调方法(可能为 "
368+ " ``'strict'`` )编码为 ``sys.stdout.encoding``,则用 ``'backslashreplace'`` "
369369"错误回调方法将其编码为 ``sys.stdout.encoding``。"
370370
371371#: ../../library/sys.rst:248
@@ -375,14 +375,16 @@ msgid ""
375375" these values can be customized by assigning another one-argument function "
376376"to ``sys.displayhook``."
377377msgstr ""
378+ "在交互式 Python 会话中运行 :term:`expression` 产生结果后,将在结果上调用 "
379+ "``sys.displayhook``。若要自定义这些 value 的显示,可以将 ``sys.displayhook`` 指定为另一个单参数函数。"
378380
379381#: ../../library/sys.rst:252
380382msgid "Pseudo-code::"
381383msgstr "伪代码::"
382384
383385#: ../../library/sys.rst:272
384386msgid "Use ``'backslashreplace'`` error handler on :exc:`UnicodeEncodeError`."
385- msgstr ""
387+ msgstr "在发生 :exc:`UnicodeEncodeError` 时使用 ``'backslashreplace'`` 错误回调方法。 "
386388
387389#: ../../library/sys.rst:278
388390msgid ""
@@ -392,6 +394,9 @@ msgid ""
392394":envvar:`PYTHONDONTWRITEBYTECODE` environment variable, but you can set it "
393395"yourself to control bytecode file generation."
394396msgstr ""
397+ "如果该值为 true,则 Python 在导入源码模块时将不会尝试写入 ``.pyc`` 文件。该值会被初始化为 ``True`` 或 "
398+ "``False``,依据是 :option:`-B` 命令行选项和 :envvar:`PYTHONDONTWRITEBYTECODE` "
399+ "环境变量,可以自行设置该值,来控制是否生成字节码文件。"
395400
396401#: ../../library/sys.rst:287
397402msgid ""
0 commit comments