Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit56d9973

Browse files
github-actions[bot]mattwang44
authored andcommitted
sync with cpython 13835888
1 parent050acc1 commit56d9973

File tree

1 file changed

+32
-22
lines changed

1 file changed

+32
-22
lines changed

‎library/json.po

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version:Python 3.13\n"
1010
"Report-Msgid-Bugs-To:\n"
11-
"POT-Creation-Date:2025-01-08 00:13+0000\n"
11+
"POT-Creation-Date:2025-01-09 00:13+0000\n"
1212
"PO-Revision-Date:2023-08-05 15:25+0800\n"
1313
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1414
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
@@ -420,7 +420,7 @@ msgstr "除了整數之外,*indent* 還允許使用字串作為輸入。"
420420
msgid"Use ``(',', ': ')`` as default if *indent* is not ``None``."
421421
msgstr"如果 *indent* 不是 ``None``,則使用 ``(',', ': ')`` 作為預設值"
422422

423-
#:../../library/json.rst:239../../library/json.rst:334
423+
#:../../library/json.rst:239../../library/json.rst:338
424424
msgid""
425425
"All optional parameters are now :ref:`keyword-only <keyword-only_parameter>`."
426426
msgstr""
@@ -553,25 +553,34 @@ msgstr ""
553553
"如果被去序列化(deserialized)的資料不符合 JSON 格式,將會引發 :exc:"
554554
"`JSONDecodeError` 例外。"
555555

556-
#:../../library/json.rst:329
556+
#:../../library/json.rst:327
557+
#,fuzzy
558+
msgid""
559+
"When the data being deserialized does not contain UTF-8, UTF-16 or UTF-32 "
560+
"encoded data."
561+
msgstr""
562+
"如果被去序列化(deserialized)的資料不符合 JSON 格式,將會引發 :exc:"
563+
"`JSONDecodeError` 例外。"
564+
565+
#:../../library/json.rst:333
557566
#,fuzzy
558567
msgid"Added the optional *object_pairs_hook* parameter."
559568
msgstr"新增對於 *object_pairs_hook* 的支援。"
560569

561-
#:../../library/json.rst:330
570+
#:../../library/json.rst:334
562571
msgid"*parse_constant* doesn't get called on 'null', 'true', 'false' anymore."
563572
msgstr""
564573
"遭遇 'null'、'true' 或 'false' 時不再以 *parse_constant* 給定的函式來處理了。"
565574

566-
#:../../library/json.rst:335
575+
#:../../library/json.rst:339
567576
msgid""
568577
"*fp* can now be a :term:`binary file`. The input encoding should be UTF-8, "
569578
"UTF-16 or UTF-32."
570579
msgstr""
571580
"現在,*fp* 可以是一個\\ :term:`二進位檔案 <binary file>`,前提是其編碼格式為 "
572581
"UTF-8、UTF-16 或 UTF-32。"
573582

574-
#:../../library/json.rst:338
583+
#:../../library/json.rst:342
575584
msgid""
576585
"The default *parse_int* of :func:`int` now limits the maximum length of the "
577586
"integer string via the interpreter's :ref:`integer string conversion length "
@@ -581,28 +590,18 @@ msgstr ""
581590
"由直譯器的\\ :ref:`整數字串轉換長度限制 <int_max_str_digits>`\\ 機制來達成,"
582591
"這能防止阻斷服務攻擊 (Denial of Service attacks)。"
583592

584-
#:../../library/json.rst:346
593+
#:../../library/json.rst:350
594+
#,fuzzy
585595
msgid""
586-
"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` "
587-
"instance containing a JSON document) to a Python object using this :ref:"
588-
"`conversion table <json-to-py-table>`."
596+
"Identical to :func:`load`, but instead of a file-like object, deserialize "
597+
"*s* (a :class:`str`, :class:`bytes` or :class:`bytearray` instance "
598+
"containing a JSON document) to a Python object using this :ref:`conversion "
599+
"table <json-to-py-table>`."
589600
msgstr""
590601
"使用\\ :ref:`轉換表 <json-to-py-table>`\\ 將 *s* (一個含有 JSON 文件的 :"
591602
"class:`str`、:class:`bytes` 或 :class:`bytearray` 的實例(instance))去序列"
592603
"化(deserialize)為一個 Python 物件"
593604

594-
#:../../library/json.rst:350
595-
msgid"The other arguments have the same meaning as in :func:`load`."
596-
msgstr"其餘引數的使用方式與意義和 :func:`load` 的相同。"
597-
598-
#:../../library/json.rst:352../../library/json.rst:430
599-
msgid""
600-
"If the data being deserialized is not a valid JSON document, a :exc:"
601-
"`JSONDecodeError` will be raised."
602-
msgstr""
603-
"如果被去序列化(deserialized)的資料不符合 JSON 格式,將會引發 :exc:"
604-
"`JSONDecodeError` 例外。"
605-
606605
#:../../library/json.rst:355
607606
msgid""
608607
"*s* can now be of type :class:`bytes` or :class:`bytearray`. The input "
@@ -774,6 +773,14 @@ msgstr ""
774773
"語境中的控制字元指的是 ASCII 字元編碼在 0~31 範圍內的字元,包括 ``'\\t'``"
775774
"(tab)、``'\\n'``、``'\\r'`` 和 ``'\\0'``。"
776775

776+
#:../../library/json.rst:430
777+
msgid""
778+
"If the data being deserialized is not a valid JSON document, a :exc:"
779+
"`JSONDecodeError` will be raised."
780+
msgstr""
781+
"如果被去序列化(deserialized)的資料不符合 JSON 格式,將會引發 :exc:"
782+
"`JSONDecodeError` 例外。"
783+
777784
#:../../library/json.rst:433../../library/json.rst:534
778785
msgid"All parameters are now :ref:`keyword-only <keyword-only_parameter>`."
779786
msgstr""
@@ -1382,6 +1389,9 @@ msgstr ""
13821389
"所述,JSON 允許字串中出現 U+2028(列分隔符)和 U+2029(段落分隔符)字元,而 "
13831390
"JavaScript(截至 ECMAScript 5.1 版)則不允許。"
13841391

1392+
#~ msgid "The other arguments have the same meaning as in :func:`load`."
1393+
#~ msgstr "其餘引數的使用方式與意義和 :func:`load` 的相同。"
1394+
13851395
#~ msgid ""
13861396
#~ "To use a custom :class:`JSONDecoder` subclass, specify it with the "
13871397
#~ "``cls`` kwarg; otherwise :class:`JSONDecoder` is used. Additional "

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp