Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 339ad4c commit 920ab99Copy full SHA for 920ab99
library/json.po
@@ -143,7 +143,11 @@ msgid ""
143
"``inf``, ``-inf``) in strict compliance of the JSON specification. If "
144
"*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-"
145
"Infinity``) will be used."
146
-msgstr ""
+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``)"
151
152
#: ../../library/json.rst:168 ../../library/json.rst:452
153
msgid ""
0 commit comments