Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 920ab99

Browse files
committed
translated json.rst:162 to chinese
1 parent 339ad4c commit 920ab99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

library/json.po

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@ msgid ""
143143
"``inf``, ``-inf``) in strict compliance of the JSON specification. If "
144144
"*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-"
145145
"Infinity``) will be used."
146-
msgstr ""
146+
msgstr "如果 *allow_nan* 設為 False (預設值為 ``True``), 那麼串聯化 (serialize)"
147+
":class:`float` 的特殊值 (``nan``, ""``inf``, ``-inf``) 會觸發 :exc:`ValueError`"
148+
"這麼設定是為了遵守較嚴格的 JSON 規範 (strict JSON specification)。 如果設為 True,"
149+
"則串聯化這些極值不會出錯,而是會被自動代換成 JavaScript 上等價的值去(``NaN``,"
150+
"``Infinity``, ``-Infinity``)"
147151

148152
#: ../../library/json.rst:168 ../../library/json.rst:452
149153
msgid ""

0 commit comments

Comments
 (0)