@@ -8,7 +8,7 @@ msgstr ""
8
8
"Project-Id-Version : Python 3.12\n "
9
9
"Report-Msgid-Bugs-To : \n "
10
10
"POT-Creation-Date : 2023-07-17 17:39+0800\n "
11
- "PO-Revision-Date : 2024-01-03 17:00 +0800\n "
11
+ "PO-Revision-Date : 2024-02-05 16:30 +0800\n "
12
12
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
13
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
14
"tw)\n "
@@ -53,66 +53,79 @@ msgstr "此模組提供下列函式。除非特意註明,否則回傳值皆為
53
53
54
54
#: ../../library/math.rst:30
55
55
msgid "Number-theoretic and representation functions"
56
- msgstr ""
56
+ msgstr "數論與表現函式 "
57
57
58
58
#: ../../library/math.rst:34
59
59
msgid ""
60
60
"Return the ceiling of *x*, the smallest integer greater than or equal to "
61
61
"*x*. If *x* is not a float, delegates to :meth:`x.__ceil__ <object."
62
62
"__ceil__>`, which should return an :class:`~numbers.Integral` value."
63
63
msgstr ""
64
+ "回傳 *x* 經上取整的值,即大於或等於 *x* 的最小整數。若 *x* 並非浮點數,此函式"
65
+ "將委派給 :meth:`x.__ceil__ <object.__ceil__>`,並回傳 :class:`~numbers."
66
+ "Integral` 型別的值。"
64
67
65
68
#: ../../library/math.rst:41
66
69
msgid ""
67
70
"Return the number of ways to choose *k* items from *n* items without "
68
71
"repetition and without order."
69
- msgstr ""
72
+ msgstr "回傳從 *n* 個物品中不重複且不考慮排序地取出 *k* 個物品的方法數。 "
70
73
71
74
#: ../../library/math.rst:44
72
75
msgid ""
73
76
"Evaluates to ``n! / (k! * (n - k)!)`` when ``k <= n`` and evaluates to zero "
74
77
"when ``k > n``."
75
- msgstr ""
78
+ msgstr "當 ``k <= n`` 時其值為 ``n! / (k! * (n - k)!)``,否則其值為 ``0``。 "
76
79
77
80
#: ../../library/math.rst:47
78
81
msgid ""
79
82
"Also called the binomial coefficient because it is equivalent to the "
80
83
"coefficient of k-th term in polynomial expansion of ``(1 + x)ⁿ``."
81
84
msgstr ""
85
+ "因為此值等同於 ``(1 + x)ⁿ`` 進行多項式展開後第 k 項的係數,所以又稱為二項式係"
86
+ "數。"
82
87
83
88
#: ../../library/math.rst:51 ../../library/math.rst:258
84
89
msgid ""
85
90
"Raises :exc:`TypeError` if either of the arguments are not integers. Raises :"
86
91
"exc:`ValueError` if either of the arguments are negative."
87
92
msgstr ""
93
+ "當任一參數非整數型別時會引發 :exc:`TypeError`。當任一參數為負數時會引發 :exc:"
94
+ "`ValueError`。"
88
95
89
96
#: ../../library/math.rst:59
90
97
msgid ""
91
98
"Return a float with the magnitude (absolute value) of *x* but the sign of "
92
99
"*y*. On platforms that support signed zeros, ``copysign(1.0, -0.0)`` "
93
100
"returns *-1.0*."
94
101
msgstr ""
102
+ "回傳與 *x* 相同長度(絕對值)且與 *y* 同號的浮點數。在支援帶符號零的平臺上,"
103
+ "``copysign(1.0, -0.0)`` 回傳 *-1.0*。"
95
104
96
105
#: ../../library/math.rst:66
97
106
msgid "Return the absolute value of *x*."
98
- msgstr ""
107
+ msgstr "回傳 *x* 的絕對值。 "
99
108
100
109
#: ../../library/math.rst:71
101
110
msgid ""
102
111
"Return *n* factorial as an integer. Raises :exc:`ValueError` if *n* is not "
103
112
"integral or is negative."
104
113
msgstr ""
114
+ "以整數回傳 *n* 的階乘。若 *n* 非整數型別或其值為負會引發 :exc:`ValueError`。"
105
115
106
116
#: ../../library/math.rst:74
107
117
msgid "Accepting floats with integral values (like ``5.0``) is deprecated."
108
- msgstr ""
118
+ msgstr "允許傳入其值為整數的浮點數(如:``5.0``)已被棄用。 "
109
119
110
120
#: ../../library/math.rst:80
111
121
msgid ""
112
122
"Return the floor of *x*, the largest integer less than or equal to *x*. If "
113
123
"*x* is not a float, delegates to :meth:`x.__floor__ <object.__floor__>`, "
114
124
"which should return an :class:`~numbers.Integral` value."
115
125
msgstr ""
126
+ "回傳 *x* 經下取整的值,即小於或等於 *x* 的最大整數。若 *x* 並非浮點數,此函式"
127
+ "將委派給 :meth:`x.__floor__ <object.__floor__>`,並回傳 :class:`~numbers."
128
+ "Integral` 型別的值。"
116
129
117
130
#: ../../library/math.rst:87
118
131
msgid ""
@@ -129,6 +142,14 @@ msgid ""
129
142
"generally preferred when working with floats, while Python's ``x % y`` is "
130
143
"preferred when working with integers."
131
144
msgstr ""
145
+ "回傳 C 函式庫所定義的 ``fmod(x, y)`` 函式值。請注意此函式與 Python 運算式 "
146
+ "``x % y`` 可能會回傳不同結果。C 標準要求 ``fmod(x, y)`` 的回傳值完全等同(數"
147
+ "學定義上,即無限精度)於 ``x - n*y``,*n* 為可使回傳值與 *x* 同號且長度小於 "
148
+ "``abs(y)`` 的整數。Python 運算式 ``x % y`` 的回傳值則與 *y* 同號,且可能無法"
149
+ "精確地計算浮點數引數。例如:``fmod(-1e-100, 1e100)`` 的值為 ``-1e-100``,但 "
150
+ "Python 運算式 ``-1e-100 % 1e100`` 的結果為 ``1e100-1e-100``,此值無法準確地表"
151
+ "示成浮點數,並會四捨五入為出乎意料的 ``1e100``。因此,處理浮點數時通常會選擇"
152
+ "函式 :func:`fmod`,而處理整數時會選擇 Python 運算式 ``x % y``。"
132
153
133
154
#: ../../library/math.rst:102
134
155
msgid ""
0 commit comments