Skip to content

Commit

Permalink
0430_modify review II
Browse files Browse the repository at this point in the history
  • Loading branch information
Becca committed Apr 30, 2024
1 parent 9e380f3 commit 048c55b
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions library/stdtypes.po
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ msgid ""
"The constructors :func:`int`, :func:`float`, and :func:`complex` can be used "
"to produce numbers of a specific type."
msgstr ""
"建構函式: :func:`inc`、:func:`float` 及 :func:`complex` 可以用來產生特定型別"
"建構函式: :func:`int`、:func:`float` 及 :func:`complex` 可以用來產生特定型別"
"的數字。"

#: ../../library/stdtypes.rst:271
Expand Down Expand Up @@ -579,7 +579,7 @@ msgstr "``divmod(x, y)``"

#: ../../library/stdtypes.rst:308
msgid "the pair ``(x // y, x % y)``"
msgstr ""
msgstr "結合 ``(x // y, x % y)`` 的運算結果"

#: ../../library/stdtypes.rst:308
msgid ":func:`divmod`"
Expand Down Expand Up @@ -618,7 +618,7 @@ msgid ""
msgstr ""
"也被稱為整數除法。結果為一個整數,但型別並不需要為整數。"
"結果總是會往負無限大的方向取整數值: ``1//2`` 為 ``0``、``(-1)//2`` 為"
"``-1``、``1//(-2)`` 為 ``-1`` 及 ``(-1)//(-2)`` 為 ``0``"
"``-1``、``1//(-2)`` 為 ``-1`` 及 ``(-1)//(-2)`` 為 ``0``"

#: ../../library/stdtypes.rst:328
msgid ""
Expand Down Expand Up @@ -673,7 +673,7 @@ msgid ""
"All :class:`numbers.Real` types (:class:`int` and :class:`float`) also "
"include the following operations:"
msgstr ""
"所有 :class:`numbers.Real` 型別(:class:`int` 及 :class:`float`)也適用下下列"
"所有 :class:`numbers.Real` 型別(:class:`int` 及 :class:`float`)也適用下列"
"運算:"

#: ../../library/stdtypes.rst:365
Expand All @@ -693,7 +693,7 @@ msgid ""
"*x* rounded to *n* digits, rounding half to even. If *n* is omitted, it "
"defaults to 0."
msgstr ""
"*x* 進位至第 *n* 為小數,半數職則會進位至偶數。若省略 *n* ,則默認為0。"
"*x* 進位至小數點後第 *n* 位,使用偶數捨入法。若省略 *n* ,則預設為 0。"

#: ../../library/stdtypes.rst:372
msgid ":func:`math.floor(\\ x) <math.floor>`"
Expand Down Expand Up @@ -727,7 +727,7 @@ msgid ""
"operations is calculated as though carried out in two's complement with an "
"infinite number of sign bits."
msgstr ""
"位元運算只對整數有意義。位元運算的計算結果就如同對二的補碼執行無窮多個符號位"
"位元運算只對整數有意義。位元運算的計算結果就如同對二的補數執行無窮多個符號位"
"元。"

#: ../../library/stdtypes.rst:406
Expand All @@ -750,7 +750,7 @@ msgstr "``x | y``"

#: ../../library/stdtypes.rst:415
msgid "bitwise :dfn:`or` of *x* and *y*"
msgstr "位元 :dfn: *x* 及 *y* `or`"
msgstr "*x* 及 *y* 的位元 :dfn:`or`"

#: ../../library/stdtypes.rst:415 ../../library/stdtypes.rst:418
#: ../../library/stdtypes.rst:421 ../../library/stdtypes.rst:1211
Expand All @@ -765,15 +765,15 @@ msgstr "``x ^ y``"

#: ../../library/stdtypes.rst:418
msgid "bitwise :dfn:`exclusive or` of *x* and *y*"
msgstr "位元 :dfn: *x* 及 *y* `exclusive or`"
msgstr "*x* 及 *y* 的位元 :dfn:`exclusive or`"

#: ../../library/stdtypes.rst:421
msgid "``x & y``"
msgstr "``x & y``"

#: ../../library/stdtypes.rst:421
msgid "bitwise :dfn:`and` of *x* and *y*"
msgstr "位元 :dfn: *x* 及 *y* `and`"
msgstr "*x* 及 *y* 的位元 :dfn:`and`"

#: ../../library/stdtypes.rst:424
msgid "``x << n``"
Expand Down Expand Up @@ -805,12 +805,12 @@ msgstr "``~x``"

#: ../../library/stdtypes.rst:428
msgid "the bits of *x* inverted"
msgstr "*x* 逐個位元逐個位元反轉"
msgstr "反轉 *x* 的位元"

#: ../../library/stdtypes.rst:434
msgid ""
"Negative shift counts are illegal and cause a :exc:`ValueError` to be raised."
msgstr "複數位移是不被允許並會引發 :exc:`ValueError` 的錯誤產生。"
msgstr "負數位移是不被允許並會引發 :exc:`ValueError` 的錯誤。"

#: ../../library/stdtypes.rst:437
msgid ""
Expand All @@ -820,7 +820,7 @@ msgstr "向左移動 *n* 個位元等同於乘以 ``pow(2, n)``。"
#: ../../library/stdtypes.rst:440
msgid ""
"A right shift by *n* bits is equivalent to floor division by ``pow(2, n)``."
msgstr "向右移動 *n* 個位元等同於已向下除法除以 ``pow(2, n)``。"
msgstr "向右移動 *n* 個位元等同於向下除法除以 ``pow(2, n)``。"

#: ../../library/stdtypes.rst:443
msgid ""
Expand All @@ -829,9 +829,9 @@ msgid ""
"bit_length(), y.bit_length())`` or more) is sufficient to get the same "
"result as if there were an infinite number of sign bits."
msgstr ""
"使用至少一個額外的符號擴展位元在一個有限的二進位補碼(一個有效寬度為 ``1 + "
"max(x.bit_length(), y.bit_length())`` 或以上)便足以得到與有無數個符號位元一"
"樣的結果。"
"在有限的二的補數表示法中執行這些計算(一個有效位元寬度為 ``1 + max(x.bit_length(), "
"y.bit_length())`` 或以上)並至少有一個額外的符號擴展位元,便足以得到與無窮多個"
"符號位元相同的結果。"

#: ../../library/stdtypes.rst:450
msgid "Additional Methods on Integer Types"
Expand Down Expand Up @@ -859,7 +859,7 @@ msgid ""
"logarithm, then ``k = 1 + int(log(abs(x), 2))``. If ``x`` is zero, then ``x."
"bit_length()`` returns ``0``."
msgstr ""
"更準確來說,若 ``x`` 非為零,則 ``x.bit_length()`` 是使得 ``2**(k-1) <= "
"更準確來說,若 ``x`` 非為零,則 ``x.bit_length()`` 會得出滿足 ``2**(k-1) <= "
"abs(x) < 2**k`` 的單一正整數 ``k``。同樣地,當 ``abs(x)`` 足夠小到能正確地取"
"得捨入的對數,則 ``k = 1 + int(log(abs(x), 2))``。若 ``x`` 為零,則 ``x."
"bit_length()`` 會回傳 ``0``。"
Expand All @@ -868,7 +868,7 @@ msgstr ""
#: ../../library/stdtypes.rst:540 ../../library/stdtypes.rst:584
msgid "Equivalent to::"
msgstr ""
"等價於:\n"
"等同於:\n"
"\n"
"::"

Expand Down Expand Up @@ -912,7 +912,7 @@ msgid ""
msgstr ""
"*signed* 引數決定是否使用二的補數來表示整數。如果 *signed* 是 ```False``` 並"
"且給定了一個負整數,則會引發 :exc:`OverflowError`。*signed* 的預設值是"
"``False``。"
" ``False``。"

#: ../../library/stdtypes.rst:531
msgid ""
Expand All @@ -925,7 +925,7 @@ msgid ""
"However, when using the default arguments, don't try to convert a value "
"greater than 255 or you'll get an :exc:`OverflowError`."
msgstr ""
"然而,使用預設引數時,不要嘗試轉換大於 255 的值,否則你將會導致 :exc:"
"然而,使用預設引數時,不要嘗試轉換大於 255 的值,否則你將會得到一個 :exc:"
"`OverflowError`。"

#: ../../library/stdtypes.rst:553
Expand Down Expand Up @@ -974,7 +974,7 @@ msgid ""
"has a positive denominator. The integer ratio of integers (whole numbers) "
"is always the integer as the numerator and ``1`` as the denominator."
msgstr ""
"回傳一對整數,其比率等於原始整數並且有一個正的分母。整數(整個數值)的整數比"
"回傳一對整數,其比率等於原始整數並且有一個正分母。整數(整個數值)的整數比"
"率總是整數作為分子,並且 ``1`` 作為分母。"

#: ../../library/stdtypes.rst:615
Expand All @@ -1001,7 +1001,7 @@ msgid ""
"float. The ratio is in lowest terms and has a positive denominator. Raises :"
"exc:`OverflowError` on infinities and a :exc:`ValueError` on NaNs."
msgstr ""
"回傳一對整數,其比率完全等於原始浮點數。比率是在最低條件下並且有一個正的分"
"回傳一對整數,其比率完全等於原始浮點數。比率是在最低條件下並且有一個正分"
"母。在無窮大時引發 :exc:`OverflowError`,在 NaN 時引發 :exc:`ValueError`。"

#: ../../library/stdtypes.rst:634
Expand All @@ -1020,7 +1020,7 @@ msgid ""
"of floating-point numbers. This can be useful when debugging, and in "
"numerical work."
msgstr ""
"兩個方法支援轉換為及從十六進位字串。由於 Python 的浮點數內部以二進位數字儲"
"兩個方法支援至及從十六進位字串進行的轉換。由於 Python 的浮點數內部以二進位數值儲"
"存,將浮點數轉換為或從 *十進位* 字串通常涉及一個小的四捨五入誤差。相反地,十"
"六進位字串允許精確表示和指定浮點數。這在除錯和數值工作中可能會有用。"

Expand All @@ -1038,7 +1038,7 @@ msgid ""
"Class method to return the float represented by a hexadecimal string *s*. "
"The string *s* may have leading and trailing whitespace."
msgstr ""
"類別方法回傳由十六進位字串 *s* 表示的浮點數。字串 *s* 可能有前導及尾隨空白。"
"類別方法回傳由十六進位字串 *s* 表示的浮點數。字串 *s* 可能有前導及後方的空白。"

#: ../../library/stdtypes.rst:666
msgid ""
Expand Down Expand Up @@ -1138,8 +1138,8 @@ msgid ""
"by ``P``, define ``hash(x)`` as ``m * invmod(n, P) % P``, where ``invmod(n, "
"P)`` gives the inverse of ``n`` modulo ``P``."
msgstr ""
"如果 ``x = m / n`` 是一個非負的有理數並且 ``n`` 不可被 ``P`` 整除,則將 "
"``hash(x)`` 定義為 ``m * invmod(n, P) % P``其中 ``invmod(n, P)`` 為 "
"如果 ``x = m / n`` 是一個非負的有理數,並且 ``n`` 不可被 ``P`` 整除,則將 "
"``hash(x)`` 定義為 ``m * invmod(n, P) % P``其中 ``invmod(n, P)`` 為 "
"``n`` 對模數 ``P`` 的倒數。"

#: ../../library/stdtypes.rst:732
Expand All @@ -1149,16 +1149,16 @@ msgid ""
"above doesn't apply; in this case define ``hash(x)`` to be the constant "
"value ``sys.hash_info.inf``."
msgstr ""
"如果 ``x = m / n`` 是一個非負有理數並且 ``n`` 可被 ``P`` 整除(但 ``m`` 不"
"行)則 ``n`` 沒有對 inverse modulo(模倒數) ``P`` 並且上述規則不適用;在這種情況下將 ``hash(x)`` "
"定義為常數值 ``sys.hash_info.inf``。"
"如果 ``x = m / n`` 是一個非負的有理數,並且 ``n`` 可被 ``P`` 整除(但 ``m`` 不"
"行)則 ``n`` 沒有 inverse modulo(模倒數) ``P`` ,並且不適用於上述規則;"
"在這種情況下,將 ``hash(x)`` 定義為常數值 ``sys.hash_info.inf``。"

#: ../../library/stdtypes.rst:737
msgid ""
"If ``x = m / n`` is a negative rational number define ``hash(x)`` as ``-"
"hash(-x)``. If the resulting hash is ``-1``, replace it with ``-2``."
msgstr ""
"如果 ``x = m / n`` 是一個負有理數,則將 ``hash(x)`` 定義為 ``-hash(-x)``。如"
"如果 ``x = m / n`` 是一個負的有理數,則將 ``hash(x)`` 定義為 ``-hash(-x)``。如"
"果結果的雜湊是 ``-1``,則將其替換為 ``-2``。"

#: ../../library/stdtypes.rst:741
Expand All @@ -1178,9 +1178,9 @@ msgid ""
"lies in ``range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width - "
"1))``. Again, if the result is ``-1``, it's replaced with ``-2``."
msgstr ""
"對於一個 :class:`complex` 數字 ``z``,實部和虛部的雜湊值通過計算 ``hash(z."
"real) + sys.hash_info.imag * hash(z.imag)`` 來組合,對 ``2**sys.hash_info."
"width`` 取模數以使其位於 ``range(-2**(sys.hash_info.width - 1), 2**(sys."
"對於一個 :class:`complex` ``z``,實部和虛部的雜湊值藉由 ``hash(z."
"real) + sys.hash_info.imag * hash(z.imag)`` 的計算進行組合,對 ``2**sys.hash_info."
"width`` 取模數使其界於 ``range(-2**(sys.hash_info.width - 1), 2**(sys."
"hash_info.width - 1))``。同樣地,如果結果是 ``-1``,則將其替換為 ``-2``。"

#: ../../library/stdtypes.rst:753
Expand All @@ -1189,7 +1189,7 @@ msgid ""
"the built-in hash, for computing the hash of a rational number, :class:"
"`float`, or :class:`complex`::"
msgstr ""
"為了澄清上述規則,這裡有一些示例 Python 程式碼,等同於內建的雜湊,用於計算有理"
"為了闡明上述規則,這裡有一些 Python 程式碼範例,等同於內建的雜湊,用於計算有理"
"數、:class:`float` 或 :class:`complex` 的雜湊: ::"

#: ../../library/stdtypes.rst:808
Expand Down Expand Up @@ -1252,8 +1252,8 @@ msgid ""
"support iteration. Sequences, described below in more detail, always "
"support the iteration methods."
msgstr ""
"Python 支援對容器的疊代概念。這是使用兩種不同的實作方法;這些方法被用於允許用"
"戶自定義類別以支援疊代。序列則總是支援這些疊代方法,在下方有更詳細的描述。"
"Python 支援對容器的疊代概念。這是實作兩種不同的方法;這些方法被用於允許用"
"戶自定義的類別以支援疊代。序列則總是支援這些疊代方法,在下方有更詳細的描述。"

#: ../../library/stdtypes.rst:854
msgid ""
Expand All @@ -1275,7 +1275,7 @@ msgstr ""
"回傳一個 :term:`iterator` 物件。該物件需要支援下述的疊代器協定。如果一個容器"
"支援不同型別的疊代,則可以提供額外的方法來專門請求這些疊代型別的疊代器。(支"
"援多種形式疊代的物件的一個例子是支援廣度優先和深度優先遍歷的樹結構。)此方法"
"對應於 Python/C API 中 Python 物件的型別結構的 :c:member:`~PyTypeObject."
"對應 Python/C API 中 Python 物件的型別結構的 :c:member:`~PyTypeObject."
"tp_iter` 插槽。"

#: ../../library/stdtypes.rst:870
Expand Down

0 comments on commit 048c55b

Please sign in to comment.