-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate library/math.po rst: 30-101 #800
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e807dde
translate 2~3 introduction
Carisa-Li c4706c8
update rst: 13-24
Carisa-Li 87e5d2b
rst: 30-101
Carisa-Li fe46997
Merge branch '3.12' into library/math
Carisa-Li c545b7a
Update library/math.po
Carisa-Li e76d71c
Update library/math.po
Carisa-Li 75a1bbd
Update library/math.po
Carisa-Li 8600332
Update library/math.po
Carisa-Li 03e4c96
Update library/math.po
Carisa-Li e93753c
fix rst: 30-101 part 1
Carisa-Li 5a0038c
fix rst: 30-101
Carisa-Li 69c0759
Merge branch '3.12' into library/math
ken71301 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgstr "" | |
"Project-Id-Version: Python 3.12\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-07-17 17:39+0800\n" | ||
"PO-Revision-Date: 2024-01-14 01:32+0800\n" | ||
"PO-Revision-Date: 2024-01-31 17:12+0800\n" | ||
"Last-Translator: Adrian Liaw <[email protected]>\n" | ||
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-" | ||
"tw)\n" | ||
|
@@ -61,8 +61,8 @@ msgid "" | |
"*x*. If *x* is not a float, delegates to :meth:`x.__ceil__ <object." | ||
"__ceil__>`, which should return an :class:`~numbers.Integral` value." | ||
msgstr "" | ||
"回傳 *x* 經上取整的值,即大於或等於 *x* 的最小整數。若 *x* 並非浮點數,此" | ||
"函式將委派給 :meth:`x.__ceil__ <object.__ceil__>`,並回傳 :class:`~numbers." | ||
"回傳 *x* 經上取整的值,即大於或等於 *x* 的最小整數。若 *x* 並非浮點數,此函式" | ||
"將委派給 :meth:`x.__ceil__ <object.__ceil__>`,並回傳 :class:`~numbers." | ||
"Integral` 型別的值。" | ||
|
||
#: ../../library/math.rst:41 | ||
|
@@ -75,7 +75,7 @@ msgstr "回傳從 *n* 個物品中不重複且不考慮排序地取出 *k* 個 | |
msgid "" | ||
"Evaluates to ``n! / (k! * (n - k)!)`` when ``k <= n`` and evaluates to zero " | ||
"when ``k > n``." | ||
msgstr "當 ``k <= n`` 時回傳 ``n! / (k! * (n - k)!)``,否則回傳 ``0``。" | ||
msgstr "當 ``k <= n`` 時其值為 ``n! / (k! * (n - k)!)``,否則其值為 ``0``。" | ||
|
||
#: ../../library/math.rst:47 | ||
msgid "" | ||
|
@@ -111,8 +111,7 @@ msgid "" | |
"Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not " | ||
"integral or is negative." | ||
msgstr "" | ||
"以整數型別回傳 *n* 的階乘。若 *n* 非整數型別或其值為負會引發 :exc:" | ||
"`ValueError`。" | ||
"以整數回傳 *n* 的階乘。若 *n* 非整數型別或其值為負會引發 :exc:`ValueError`。" | ||
|
||
#: ../../library/math.rst:74 | ||
msgid "Accepting floats with integral values (like ``5.0``) is deprecated." | ||
|
@@ -124,8 +123,8 @@ msgid "" | |
"*x* is not a float, delegates to :meth:`x.__floor__ <object.__floor__>`, " | ||
"which should return an :class:`~numbers.Integral` value." | ||
msgstr "" | ||
"回傳 *x* 經下取整的值,即小於或等於 *x* 的最大整數。若 *x* 並非浮點數,此" | ||
"函式將委派給 :meth:`x.__floor__ <object.__floor__>`,並回傳 :class:`~numbers." | ||
"回傳 *x* 經下取整的值,即小於或等於 *x* 的最大整數。若 *x* 並非浮點數,此函式" | ||
"將委派給 :meth:`x.__floor__ <object.__floor__>`,並回傳 :class:`~numbers." | ||
"Integral` 型別的值。" | ||
|
||
#: ../../library/math.rst:87 | ||
|
@@ -143,14 +142,14 @@ msgid "" | |
"generally preferred when working with floats, while Python's ``x % y`` is " | ||
"preferred when working with integers." | ||
msgstr "" | ||
"回傳和 C 函式庫中 ``fmod(x, y)`` 函式相同的值。請注意此值與 Python 運算式 " | ||
"``x % y`` 的結果可能不同。C 標準定義 ``fmod(x, y)`` 的回傳值完全等同(數學定" | ||
"義上,即無限精度)於 ``x - n*y``,*n* 為使回傳值與 *x* 同號且長度小於 " | ||
"``abs(y)`` 的整數;Python 運算式 ``x % y`` 的回傳值則與 *y* 同號,且可能無法" | ||
"精確地計算浮點數。例如:``fmod(-1e-100, 1e100)`` 的回傳值為 ``-1e-100``,但 " | ||
"``-1e-100 % 1e100`` 的回傳值為 ``1e100-1e-100``,此值無法準確地以浮點數表示," | ||
"並會四捨五入為令人驚訝的 ``1e100``。因此,處理浮點數時通常建議使用 :func:" | ||
"`fmod`,而處理整數時建議使用 ``x % y``。" | ||
"回傳 C 函式庫所定義的 ``fmod(x, y)`` 函式值。請注意此函式與 Python 運算式 " | ||
"``x % y`` 可能會回傳不同結果。C 標準要求 ``fmod(x, y)`` 的回傳值完全等同(數" | ||
"學定義上,即無限精度)於 ``x - n*y``,*n* 為可使回傳值與 *x* 同號且長度小於 " | ||
"``abs(y)`` 的整數。Python 運算式 ``x % y`` 的回傳值則與 *y* 同號,且可能無法" | ||
"精確地計算浮點數參數。例如:``fmod(-1e-100, 1e100)`` 的值為 ``-1e-100``,但運" | ||
"算式 ``-1e-100 % 1e100`` 的結果為 ``1e100-1e-100``,此值無法準確地表示成浮點" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the result of Python's... 漏翻了 |
||
"數,並會四捨五入為出乎意料的 ``1e100``。因此,處理浮點數時通常會選擇函式 :" | ||
"func:`fmod`,而處理整數時會選擇運算式 ``x % y``。" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python's 漏翻 |
||
|
||
#: ../../library/math.rst:102 | ||
msgid "" | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
arguments 為引數