Skip to content

Commit 874387e

Browse files
committed
docs(library/json.po): review 2 fixes
1 parent 558305c commit 874387e

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

library/json.po

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,9 @@ msgid ""
374374
"kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments "
375375
"will be passed to the constructor of the class."
376376
msgstr ""
377-
"若想要使用自訂的 :class:`JSONDecoder` 子類別物件,請以 ``cls`` 關鍵字引數指"
378-
"定之,否則將使用預設的 :class:`JSONDecoder`。其他未使用到的關鍵字引數將繼續傳"
379-
"入給 JSONDecoder 的建構函式使用。"
377+
"若想要使用自訂的 :class:`JSONDecoder` 子類別物件,請以 ``cls`` 關鍵字引數指定"
378+
",否則將使用預設的 :class:`JSONDecoder`。其他未使用到的關鍵字引數將繼續傳入"
379+
" JSONDecoder 的建構函式使用。"
380380

381381
#: ../../library/json.rst:274 ../../library/json.rst:292
382382
#: ../../library/json.rst:371
@@ -596,15 +596,18 @@ msgstr "list, tuple"
596596

597597
#: ../../library/json.rst:412
598598
msgid "int, float, int- & float-derived Enums"
599-
msgstr "int, float, int 和 float 格式的 Enums"
599+
msgstr ""
600+
"int、float 或可作為整數或浮點數運算的衍生列舉(int- or float-derived Enums)"
600601

601602
#: ../../library/json.rst:412
602603
msgid "number"
603604
msgstr "number"
604605

605606
#: ../../library/json.rst:421
606607
msgid "Added support for int- and float-derived Enum classes."
607-
msgstr "增加整數(int)和浮點數(float)格式的列舉序數(Enums)類別的支援性。"
608+
msgstr ""
609+
"增加對整數(int)、浮點數(float)或可作為整數或浮點數運算的衍生列舉(int- "
610+
"or float-derived Enums)類別的支援性。"
608611

609612
#: ../../library/json.rst:424
610613
msgid ""
@@ -683,12 +686,6 @@ msgid ""
683686
"example::"
684687
msgstr "回傳一個 Python 資料結構物件 *o* 的 JSON 的字串表示。例如: ::"
685688

686-
# 執行下列程式後能證明他的回傳物件是generator
687-
# >>> import json
688-
# >>> bigobject = list(range(100000))
689-
# >>> x = json.JSONEncoder().iterencode(bigobject)
690-
# >>> print(x)
691-
# <generator object _make_iterencode.<locals>._iterencode at 0x7293c4b48bc0>
692689
#: ../../library/json.rst:510
693690
msgid ""
694691
"Encode the given object, *o*, and yield each string representation as "
@@ -988,7 +985,7 @@ msgid ""
988985
"to :data:`sys.stdout`."
989986
msgstr ""
990987
"將 *infile* 的結果寫入到給定的 *outfile*。若未提供則寫入到 :data:`sys."
991-
"stdout`\\。"
988+
"stdout`。"
992989

993990
#: ../../library/json.rst:733
994991
msgid "Sort the output of dictionaries alphabetically by key."

0 commit comments

Comments
 (0)