8000 0430_modify review II · beccalzh/python-docs-zh-tw@048c55b · GitHub
[go: up one dir, main page]

Skip to content

Commit 048c55b

Browse files
author
Becca
committed
0430_modify review II
1 parent 9e380f3 commit 048c55b

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

library/stdtypes.po

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ msgid ""
423423
"The constructors :func:`int`, :func:`float`, and :func:`complex` can be used "
424424
"to produce numbers of a specific type."
425425
msgstr ""
426-
"建構函式: :func:`inc`、:func:`float` 及 :func:`complex` 可以用來產生特定型別"
426+
"建構函式: :func:`int`、:func:`float` 及 :func:`complex` 可以用來產生特定型別"
427427
"的數字。"
428428

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

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

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

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

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

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

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

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

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

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

770770
#: ../../library/stdtypes.rst:421
771771
msgid "``x & y``"
772772
msgstr "``x & y``"
773773

774774
#: ../../library/stdtypes.rst:421
775775
msgid "bitwise :dfn:`and` of *x* and *y*"
776-
msgstr "位元 :dfn: *x* 及 *y* `and`"
776+
msgstr "*x* 及 *y* 的位元 :dfn:`and`"
777777

778778
#: ../../library/stdtypes.rst:424
779779
msgid "``x << n``"
@@ -805,12 +805,12 @@ msgstr "``~x``"
805805

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

12811281
#: ../../library/stdtypes.rst:870

0 commit comments

Comments
 (0)
0