8
8
msgstr ""
9
9
"Project-Id-Version :Python 3.13\n "
10
10
"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 "
12
12
"PO-Revision-Date :2023-08-05 15:25+0800\n "
13
13
"Last-Translator :Matt Wang <mattwang44@gmail.com>\n "
14
14
"Language-Team :Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
@@ -420,7 +420,7 @@ msgstr "除了整數之外,*indent* 還允許使用字串作為輸入。"
420
420
msgid "Use ``(',', ': ')`` as default if *indent* is not ``None``."
421
421
msgstr "如果 *indent* 不是 ``None``,則使用 ``(',', ': ')`` 作為預設值"
422
422
423
- #: ../../library/json.rst:239 ../../library/json.rst:334
423
+ #: ../../library/json.rst:239 ../../library/json.rst:338
424
424
msgid ""
425
425
"All optional parameters are now :ref:`keyword-only <keyword-only_parameter>`."
426
426
msgstr ""
@@ -553,25 +553,34 @@ msgstr ""
553
553
"如果被去序列化(deserialized)的資料不符合 JSON 格式,將會引發 :exc:"
554
554
"`JSONDecodeError` 例外。"
555
555
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
557
566
#, fuzzy
558
567
msgid "Added the optional *object_pairs_hook* parameter."
559
568
msgstr "新增對於 *object_pairs_hook* 的支援。"
560
569
561
- #: ../../library/json.rst:330
570
+ #: ../../library/json.rst:334
562
571
msgid "*parse_constant* doesn't get called on 'null', 'true', 'false' anymore."
563
572
msgstr ""
564
573
"遭遇 'null'、'true' 或 'false' 時不再以 *parse_constant* 給定的函式來處理了。"
565
574
566
- #: ../../library/json.rst:335
575
+ #: ../../library/json.rst:339
567
576
msgid ""
568
577
"*fp* can now be a :term:`binary file`. The input encoding should be UTF-8, "
569
578
"UTF-16 or UTF-32."
570
579
msgstr ""
571
580
"現在,*fp* 可以是一個\\ :term:`二進位檔案 <binary file>`,前提是其編碼格式為 "
572
581
"UTF-8、UTF-16 或 UTF-32。"
573
582
574
- #: ../../library/json.rst:338
583
+ #: ../../library/json.rst:342
575
584
msgid ""
576
585
"The default *parse_int* of :func:`int` now limits the maximum length of the "
577
586
"integer string via the interpreter's :ref:`integer string conversion length "
@@ -581,28 +590,18 @@ msgstr ""
581
590
"由直譯器的\\ :ref:`整數字串轉換長度限制 <int_max_str_digits>`\\ 機制來達成,"
582
591
"這能防止阻斷服務攻擊 (Denial of Service attacks)。"
583
592
584
- #: ../../library/json.rst:346
593
+ #: ../../library/json.rst:350
594
+ #, fuzzy
585
595
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>`."
589
600
msgstr ""
590
601
"使用\\ :ref:`轉換表 <json-to-py-table>`\\ 將 *s* (一個含有 JSON 文件的 :"
591
602
"class:`str`、:class:`bytes` 或 :class:`bytearray` 的實例(instance))去序列"
592
603
"化(deserialize)為一個 Python 物件"
593
604
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
-
606
605
#: ../../library/json.rst:355
607
606
msgid ""
608
607
"*s* can now be of type :class:`bytes` or :class:`bytearray`. The input "
@@ -774,6 +773,14 @@ msgstr ""
774
773
"語境中的控制字元指的是 ASCII 字元編碼在 0~31 範圍內的字元,包括 ``'\\ t'``"
775
774
"(tab)、``'\\ n'``、``'\\ r'`` 和 ``'\\ 0'``。"
776
775
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
+
777
784
#: ../../library/json.rst:433 ../../library/json.rst:534
778
785
msgid "All parameters are now :ref:`keyword-only <keyword-only_parameter>`."
779
786
msgstr ""
@@ -1382,6 +1389,9 @@ msgstr ""
1382
1389
"所述,JSON 允許字串中出現 U+2028(列分隔符)和 U+2029(段落分隔符)字元,而 "
1383
1390
"JavaScript(截至 ECMAScript 5.1 版)則不允許。"
1384
1391
1392
+ #~ msgid "The other arguments have the same meaning as in :func:`load`."
1393
+ #~ msgstr "其餘引數的使用方式與意義和 :func:`load` 的相同。"
1394
+
1385
1395
#~ msgid ""
1386
1396
#~ "To use a custom :class:`JSONDecoder` subclass, specify it with the "
1387
1397
#~ "``cls`` kwarg; otherwise :class:`JSONDecoder` is used. Additional "