10BC0 [po] auto sync · python/python-docs-zh-cn@16304f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 16304f8

Browse files
[po] auto sync
1 parent 03c6860 commit 16304f8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "80.84%", "updated_at": "2025-01-15T10:55:46Z"}
1+
{"translation": "80.84%", "updated_at": "2025-01-15T14:55:33Z"}

library/json.po

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@ msgid ""
494494
"decoders, for example `JSON-RPC <https://www.jsonrpc.org>`_ class hinting. "
495495
"Default ``None``."
496496
msgstr ""
497+
"如果设置,将是一个在调用时以任意被解码的对象字面值 (即一个 :class:`dict`) 作为参数的函数。 该函数的返回值将代替该 "
498+
":class:`dict` 使用。 此特性可被用于实现自定义解码器,例如 `JSON-RPC <https://www.jsonrpc.org>`_ "
499+
"类提示。 默认值为 ``None``。"
497500

498501
#: ../../library/json.rst:290
499502
msgid ""
@@ -503,6 +506,9 @@ msgid ""
503506
"implement custom decoders. If *object_hook* is also set, *object_pairs_hook*"
504507
" takes priority. Default ``None``."
505508
msgstr ""
509+
"如果设置,将是一个在调用时以对照值的有序列表进行解码的任意对象字面值作为参数的函数。 该函数的返回值将代替该 :class:`dict` 使用。 "
510+
"此特性可被用于实现自定义解码器。 如果还设置了 *object_hook*,则 *object_pairs_hook* 的优先级更高,。 默认值为 "
511+
"``None``。"
506512

507513
#: ../../library/json.rst:300
508514
msgid ""
@@ -511,6 +517,8 @@ msgid ""
511517
"This can be used to parse JSON floats into custom datatypes, for example "
512518
":class:`decimal.Decimal`."
513519
msgstr ""
520+
"如果设置,将是一个在调用时以代表每个要解码的 JSON 浮点数的字符串作为参数的函数。 如为 ``None`` (默认值),则它等价于 "
521+
"``float(num_str)``。 这可被用于将 JSON 浮点数解析为自定义数据类型,例如 :class:`decimal.Decimal`。"
514522

515523
#: ../../library/json.rst:308
516524
msgid ""
@@ -519,13 +527,17 @@ msgid ""
519527
"This can be used to parse JSON integers into custom datatypes, for example "
520528
":class:`float`."
521529
msgstr ""
530+
"如果设置,将是一个在调用时以代表每个要解码的 JSON 整数的字符串作为参数的函数。 如为 ``None`` (默认值),则它等价于 "
531+
"``int(num_str)``。 这可被用于将 JSON 整数解析为自定义数据类型,例如 :class:`float`。"
522532

523533
#: ../../library/json.rst:316
524534
msgid ""
525535
"If set, a function that is called with one of the following strings: "
526536
"``'-Infinity'``, ``'Infinity'``, or ``'NaN'``. This can be used to raise an "
527537
"exception if invalid JSON numbers are encountered. Default ``None``."
528538
msgstr ""
539+
"如果设置,将是一个以下列字符串之一作为参数的函数: ``'-Infinity'``, ``'Infinity'`` 或 ``'NaN'``。 "
540+
"这可被用于在遇到无效的 JSON 数字时引发异常。 默认值为 ``None``。"
529541

530542
#: ../../library/json.rst:0
531543
msgid "Raises"

0 commit comments

Comments
 (0)
0