66# Translators:
77# Fei Yin <[email protected] >, 2018889- # Freesand Leo <[email protected] >, 2018109# allenjuly7 <[email protected] >, 20191110# Siyuan Xu <[email protected] >, 20191211# ppcfish <[email protected] >, 20191312# Dai Xu <[email protected] >, 202113+ # Freesand Leo <[email protected] >, 20211414#
1515#, fuzzy
1616msgid ""
@@ -19,7 +19,7 @@ msgstr ""
1919"Report-Msgid-Bugs-To : \n "
2020"POT-Creation-Date : 2021-01-01 05:02+0000\n "
2121"PO-Revision-Date : 2017-02-16 17:46+0000\n "
22- "Last-Translator : Dai Xu <daixu61@hotmail .com>, 2021\n "
22+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2021\n "
2323"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2424"MIME-Version : 1.0\n "
2525"Content-Type : text/plain; charset=UTF-8\n "
@@ -378,6 +378,8 @@ msgid ""
378378"of :class:`bytes`. This method takes an *encoding* argument, such as "
379379"``UTF-8``, and optionally an *errors* argument."
380380msgstr ""
381+ "此外,可以用 :class:`bytes` 的 :func:`~bytes.decode` 方法创建一个字符串。 该方法可以接受 *encoding* "
382+ "参数,比如可以为 ``UTF-8`` ,以及可选的 *errors* 参数。 "
381383
382384#: ../../howto/unicode.rst:228
383385msgid ""
@@ -389,6 +391,10 @@ msgid ""
389391"``'backslashreplace'`` (inserts a ``\\ xNN`` escape sequence). The following "
390392"examples show the differences::"
391393msgstr ""
394+ "若无法根据编码规则对输入字符串进行编码,*errors* 参数指定了响应策略。 该参数的合法值可以是 ``'strict'`` (触发 "
395+ ":exc:`UnicodeDecodeError` 异常)、``'replace'`` (用 ``U+FFFD``、``REPLACEMENT "
396+ "CHARACTER``)、``'ignore'`` (只是将字符从 Unicode 结果中去掉),或 ``'backslashreplace'`` "
397+ "(插入一个 ``\\ xNN`` 转义序列)。 以下示例演示了这些不同的参数::"
392398
393399#: ../../howto/unicode.rst:248
394400msgid ""
0 commit comments