@@ -423,7 +423,7 @@ msgid ""
423
423
"The constructors :func:`int`, :func:`float`, and :func:`complex` can be used "
424
424
"to produce numbers of a specific type."
425
425
msgstr ""
426
- "建構函式: :func:`inc `、:func:`float` 及 :func:`complex` 可以用來產生特定型別"
426
+ "建構函式: :func:`int `、:func:`float` 及 :func:`complex` 可以用來產生特定型別"
427
427
"的數字。"
428
428
429
429
#: ../../library/stdtypes.rst:271
@@ -579,7 +579,7 @@ msgstr "``divmod(x, y)``"
579
579
580
580
#: ../../library/stdtypes.rst:308
581
581
msgid "the pair ``(x // y, x % y)``"
582
- msgstr ""
582
+ msgstr "結合 ``(x // y, x % y)`` 的運算結果 "
583
583
584
584
#: ../../library/stdtypes.rst:308
585
585
msgid ":func:`divmod`"
@@ -618,7 +618,7 @@ msgid ""
618
618
msgstr ""
619
619
"也被稱為整數除法。結果為一個整數,但型別並不需要為整數。"
620
620
"結果總是會往負無限大的方向取整數值: ``1//2`` 為 ``0``、``(-1)//2`` 為"
621
- "``-1``、``1//(-2)`` 為 ``-1`` 及 ``(-1)//(-2)`` 為 ``0``"
621
+ "``-1``、``1//(-2)`` 為 ``-1`` 及 ``(-1)//(-2)`` 為 ``0``。 "
622
622
623
623
#: ../../library/stdtypes.rst:328
624
624
msgid ""
@@ -673,7 +673,7 @@ msgid ""
673
673
"All :class:`numbers.Real` types (:class:`int` and :class:`float`) also "
674
674
"include the following operations:"
675
675
msgstr ""
676
- "所有 :class:`numbers.Real` 型別(:class:`int` 及 :class:`float`)也適用下下列 "
676
+ "所有 :class:`numbers.Real` 型別(:class:`int` 及 :class:`float`)也適用下列 "
677
677
"運算:"
678
678
679
679
#: ../../library/stdtypes.rst:365
@@ -693,7 +693,7 @@ msgid ""
693
693
"*x* rounded to *n* digits, rounding half to even. If *n* is omitted, it "
694
694
"defaults to 0."
695
695
msgstr ""
696
- "*x* 進位至第 *n* 為小數,半數職則會進位至偶數 。若省略 *n* ,則默認為0 。"
696
+ "*x* 進位至小數點後第 *n* 位,使用偶數捨入法 。若省略 *n* ,則預設為 0 。"
697
697
698
698
#: ../../library/stdtypes.rst:372
699
699
msgid ":func:`math.floor(\\ x) <math.floor>`"
@@ -727,7 +727,7 @@ msgid ""
727
727
"operations is calculated as though carried out in two's complement with an "
728
728
"infinite number of sign bits."
729
729
msgstr ""
730
- "位元運算只對整數有意義。位元運算的計算結果就如同對二的補碼執行無窮多個符號位 "
730
+ "位元運算只對整數有意義。位元運算的計算結果就如同對二的補數執行無窮多個符號位 "
731
731
"元。"
732
732
733
733
#: ../../library/stdtypes.rst:406
@@ -750,7 +750,7 @@ msgstr "``x | y``"
750
750
751
751
#: ../../library/stdtypes.rst:415
752
752
msgid "bitwise :dfn:`or` of *x* and *y*"
753
- msgstr "位元 :dfn: *x* 及 *y* 的 `or`"
753
+ msgstr "*x* 及 *y* 的位元 :dfn: `or`"
754
754
755
755
#: ../../library/stdtypes.rst:415 ../../library/stdtypes.rst:418
756
756
#: ../../library/stdtypes.rst:421 ../../library/stdtypes.rst:1211
@@ -765,15 +765,15 @@ msgstr "``x ^ y``"
765
765
766
766
#: ../../library/stdtypes.rst:418
767
767
msgid "bitwise :dfn:`exclusive or` of *x* and *y*"
768
- msgstr "位元 :dfn: *x* 及 *y* 的 `exclusive or`"
768
+ msgstr "*x* 及 *y* 的位元 :dfn: `exclusive or`"
769
769
770
770
#: ../../library/stdtypes.rst:421
771
771
msgid "``x & y``"
772
772
msgstr "``x & y``"
773
773
774
774
#: ../../library/stdtypes.rst:421
775
775
msgid "bitwise :dfn:`and` of *x* and *y*"
776
- msgstr "位元 :dfn: *x* 及 *y* 的 `and`"
776
+ msgstr "*x* 及 *y* 的位元 :dfn: `and`"
777
777
778
778
#: ../../library/stdtypes.rst:424
779
779
msgid "``x << n``"
@@ -805,12 +805,12 @@ msgstr "``~x``"
805
805
806
806
#: ../../library/stdtypes.rst:428
807
807
msgid "the bits of *x* inverted"
808
- msgstr "*x* 逐個位元逐個位元反轉 "
808
+ msgstr "反轉 *x* 的位元 "
809
809
810
810
#: ../../library/stdtypes.rst:434
811
811
msgid ""
812
812
"Negative shift counts are illegal and cause a :exc:`ValueError` to be raised."
813
- msgstr "複數位移是不被允許並會引發 :exc:`ValueError` 的錯誤產生 。"
813
+ msgstr "負數位移是不被允許並會引發 :exc:`ValueError` 的錯誤 。"
814
814
815
815
#: ../../library/stdtypes.rst:437
816
816
msgid ""
@@ -820,7 +820,7 @@ msgstr "向左移動 *n* 個位元等同於乘以 ``pow(2, n)``。"
820
820
#: ../../library/stdtypes.rst:440
821
821
msgid ""
822
822
"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)``。"
824
824
825
825
#: ../../library/stdtypes.rst:443
826
826
msgid ""
@@ -829,9 +829,9 @@ msgid ""
829
829
"bit_length(), y.bit_length())`` or more) is sufficient to get the same "
830
830
"result as if there were an infinite number of sign bits."
831
831
msgstr ""
832
- "使用至少一個額外的符號擴展位元在一個有限的二進位補碼(一個有效寬度為 ``1 + "
833
- "max(x.bit_length(), y.bit_length())`` 或以上)便足以得到與有無數個符號位元一 "
834
- "樣的結果 。"
832
+ "在有限的二的補數表示法中執行這些計算(一個有效位元寬度為 ``1 + max(x.bit_length(), "
833
+ "y.bit_length())`` 或以上)並至少有一個額外的符號擴展位元,便足以得到與無窮多個 "
834
+ "符號位元相同的結果 。"
835
835
836
836
#: ../../library/stdtypes.rst:450
837
837
msgid "Additional Methods on Integer Types"
@@ -859,7 +859,7 @@ msgid ""
859
859
"logarithm, then ``k = 1 + int(log(abs(x), 2))``. If ``x`` is zero, then ``x."
860
860
"bit_length()`` returns ``0``."
861
861
msgstr ""
862
- "更準確來說,若 ``x`` 非為零,則 ``x.bit_length()`` 是使得 ``2**(k-1) <= "
862
+ "更準確來說,若 ``x`` 非為零,則 ``x.bit_length()`` 會得出滿足 ``2**(k-1) <= "
863
863
"abs(x) < 2**k`` 的單一正整數 ``k``。同樣地,當 ``abs(x)`` 足夠小到能正確地取"
864
864
"得捨入的對數,則 ``k = 1 + int(log(abs(x), 2))``。若 ``x`` 為零,則 ``x."
865
865
"bit_length()`` 會回傳 ``0``。"
@@ -868,7 +868,7 @@ msgstr ""
868
868
#: ../../library/stdtypes.rst:540 ../../library/stdtypes.rst:584
869
869
msgid "Equivalent to::"
870
870
msgstr ""
871
- "等價於 :\n"
871
+ "等同於 :\n"
872
872
"\n"
873
873
"::"
874
874
@@ -912,7 +912,7 @@ msgid ""
912
912
msgstr ""
913
913
"*signed* 引數決定是否使用二的補數來表示整數。如果 *signed* 是 ```False``` 並"
914
914
"且給定了一個負整數,則會引發 :exc:`OverflowError`。*signed* 的預設值是"
915
- "``False``。"
915
+ " ``False``。"
916
916
917
917
#: ../../library/stdtypes.rst:531
918
918
msgid ""
@@ -925,7 +925,7 @@ msgid ""
925
925
"However, when using the default arguments, don't try to convert a value "
926
926
"greater than 255 or you'll get an :exc:`OverflowError`."
927
927
msgstr ""
928
- "然而,使用預設引數時,不要嘗試轉換大於 255 的值,否則你將會導致 :exc:"
928
+ "然而,使用預設引數時,不要嘗試轉換大於 255 的值,否則你將會得到一個 :exc:"
929
929
"`OverflowError`。"
930
930
931
931
#: ../../library/stdtypes.rst:553
@@ -974,7 +974,7 @@ msgid ""
974
974
"has a positive denominator. The integer ratio of integers (whole numbers) "
975
975
"is always the integer as the numerator and ``1`` as the denominator."
976
976
msgstr ""
977
- "回傳一對整數,其比率等於原始整數並且有一個正的分母 。整數(整個數值)的整數比"
977
+ "回傳一對整數,其比率等於原始整數並且有一個正分母 。整數(整個數值)的整數比"
978
978
"率總是整數作為分子,並且 ``1`` 作為分母。"
979
979
980
980
#: ../../library/stdtypes.rst:615
@@ -1001,7 +1001,7 @@ msgid ""
1001
1001
"float. The ratio is in lowest terms and has a positive denominator. Raises :"
1002
1002
"exc:`OverflowError` on infinities and a :exc:`ValueError` on NaNs."
1003
1003
msgstr ""
1004
- "回傳一對整數,其比率完全等於原始浮點數。比率是在最低條件下並且有一個正的分 "
1004
+ "回傳一對整數,其比率完全等於原始浮點數。比率是在最低條件下並且有一個正分 "
1005
1005
"母。在無窮大時引發 :exc:`OverflowError`,在 NaN 時引發 :exc:`ValueError`。"
1006
1006
1007
1007
#: ../../library/stdtypes.rst:634
@@ -1020,7 +1020,7 @@ msgid ""
1020
1020
"of floating-point numbers. This can be useful when debugging, and in "
1021
1021
"numerical work."
1022
1022
msgstr ""
1023
- "兩個方法支援轉換為及從十六進位字串 。由於 Python 的浮點數內部以二進位數字儲 "
1023
+ "兩個方法支援至及從十六進位字串進行的轉換 。由於 Python 的浮點數內部以二進位數值儲 "
1024
1024
"存,將浮點數轉換為或從 *十進位* 字串通常涉及一個小的四捨五入誤差。相反地,十"
1025
1025
"六進位字串允許精確表示和指定浮點數。這在除錯和數值工作中可能會有用。"
1026
1026
@@ -1038,7 +1038,7 @@ msgid ""
1038
1038
"Class method to return the float represented by a hexadecimal string *s*. "
1039
1039
"The string *s* may have leading and trailing whitespace."
1040
1040
msgstr ""
1041
- "類別方法回傳由十六進位字串 *s* 表示的浮點數。字串 *s* 可能有前導及尾隨空白 。"
1041
+ "類別方法回傳由十六進位字串 *s* 表示的浮點數。字串 *s* 可能有前導及後方的空白 。"
1042
1042
1043
1043
#: ../../library/stdtypes.rst:666
1044
1044
msgid ""
@@ -1138,8 +1138,8 @@ msgid ""
1138
1138
"by ``P``, define ``hash(x)`` as ``m * invmod(n, P) % P``, where ``invmod(n, "
1139
1139
"P)`` gives the inverse of ``n`` modulo ``P``."
1140
1140
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)`` 為 "
1143
1143
"``n`` 對模數 ``P`` 的倒數。"
1144
1144
1145
1145
#: ../../library/stdtypes.rst:732
@@ -1149,16 +1149,16 @@ msgid ""
1149
1149
"above doesn't apply; in this case define ``hash(x)`` to be the constant "
1150
1150
"value ``sys.hash_info.inf``."
1151
1151
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``。"
1155
1155
1156
1156
#: ../../library/stdtypes.rst:737
1157
1157
msgid ""
1158
1158
"If ``x = m / n`` is a negative rational number define ``hash(x)`` as ``-"
1159
1159
"hash(-x)``. If the resulting hash is ``-1``, replace it with ``-2``."
1160
1160
msgstr ""
1161
- "如果 ``x = m / n`` 是一個負有理數 ,則將 ``hash(x)`` 定義為 ``-hash(-x)``。如"
1161
+ "如果 ``x = m / n`` 是一個負的有理數 ,則將 ``hash(x)`` 定義為 ``-hash(-x)``。如"
1162
1162
"果結果的雜湊是 ``-1``,則將其替換為 ``-2``。"
1163
1163
1164
1164
#: ../../library/stdtypes.rst:741
@@ -1178,9 +1178,9 @@ msgid ""
1178
1178
"lies in ``range(-2**(sys.hash_info.width - 1), 2**(sys.hash_info.width - "
1179
1179
"1))``. Again, if the result is ``-1``, it's replaced with ``-2``."
1180
1180
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."
1184
1184
"hash_info.width - 1))``。同樣地,如果結果是 ``-1``,則將其替換為 ``-2``。"
1185
1185
1186
1186
#: ../../library/stdtypes.rst:753
@@ -1189,7 +1189,7 @@ msgid ""
1189
1189
"the built-in hash, for computing the hash of a rational number, :class:"
1190
1190
"`float`, or :class:`complex`::"
1191
1191
msgstr ""
1192
- "為了澄清上述規則,這裡有一些示例 Python 程式碼 ,等同於內建的雜湊,用於計算有理"
1192
+ "為了闡明上述規則,這裡有一些 Python 程式碼範例 ,等同於內建的雜湊,用於計算有理"
1193
1193
"數、:class:`float` 或 :class:`complex` 的雜湊: ::"
1194
1194
1195
1195
#: ../../library/stdtypes.rst:808
@@ -1252,8 +1252,8 @@ msgid ""
1252
1252
"support iteration. Sequences, described below in more detail, always "
1253
1253
"support the iteration methods."
1254
1254
msgstr ""
1255
- "Python 支援對容器的疊代概念。這是使用兩種不同的實作方法 ;這些方法被用於允許用"
1256
- "戶自定義類別以支援疊代 。序列則總是支援這些疊代方法,在下方有更詳細的描述。"
1255
+ "Python 支援對容器的疊代概念。這是實作兩種不同的方法 ;這些方法被用於允許用"
1256
+ "戶自定義的類別以支援疊代 。序列則總是支援這些疊代方法,在下方有更詳細的描述。"
1257
1257
1258
1258
#: ../../library/stdtypes.rst:854
1259
1259
msgid ""
@@ -1275,7 +1275,7 @@ msgstr ""
1275
1275
"回傳一個 :term:`iterator` 物件。該物件需要支援下述的疊代器協定。如果一個容器"
1276
1276
"支援不同型別的疊代,則可以提供額外的方法來專門請求這些疊代型別的疊代器。(支"
1277
1277
"援多種形式疊代的物件的一個例子是支援廣度優先和深度優先遍歷的樹結構。)此方法"
1278
- "對應於 Python/C API 中 Python 物件的型別結構的 :c:member:`~PyTypeObject."
1278
+ "對應 Python/C API 中 Python 物件的型別結構的 :c:member:`~PyTypeObject."
1279
1279
"tp_iter` 插槽。"
1280
1280
1281
1281
#: ../../library/stdtypes.rst:870
0 commit comments