@@ -361,7 +361,7 @@ msgid ""
361
361
"implement the :meth:`__contains__` method."
362
362
msgstr ""
363
363
"此外,擁有相同的語法優先序的 :keyword:`in` 及 :keyword:`not in` 兩種運算皆被"
364
- "是 :term:`iterable` 或者有實作 :meth:`__contains__` method 的型別所支援。"
364
+ "是 :term:`可疊代性 < iterable> ` 或者有實作 :meth:`__contains__` method 的型別所支援。"
365
365
366
366
#: ../../library/stdtypes.rst:205
367
367
msgid "Numeric Types --- :class:`int`, :class:`float`, :class:`complex`"
@@ -381,8 +381,8 @@ msgid ""
381
381
"numeric types :mod:`fractions.Fraction`, for rationals, and :mod:`decimal."
382
382
"Decimal`, for floating-point numbers with user-definable precision.)"
383
383
msgstr ""
384
- "數值型別共有三種::dfn:`integers `、:dfn:`floating point numbers ` 及 :dfn:"
385
- "`complex numbers`。 此外,Boolean 為整數中的一個子型別。整數有無限的精度。浮"
384
+ "數值型別共有三種::dfn:`整數 `、:dfn:`浮點數 ` 及 :dfn:`複數`。 "
385
+ "此外,Boolean 為整數中的一個子型別。整數有無限的精度。浮"
386
386
"點數通常使用 C 裡面的 :c:expr:`double` 實作。關於在你程式所運作的機器上之浮點"
387
387
"數的精度及內部表示法可以在 :data:`sys.float_info` 進行查找。複數包含實數及虛"
388
388
"數的部分,這兩部分各自是一個浮點數。若要從一個複數 *z* 提取這兩部分,需使用 "
@@ -648,7 +648,7 @@ msgid ""
648
648
"Python defines ``pow(0, 0)`` and ``0 ** 0`` to be ``1``, as is common for "
649
649
"programming languages."
650
650
msgstr ""
651
- "Python 將 ``pow(0, 0)`` 及 ``0 ** 0`` 定義為 ``1`` 這是在撰寫程式語言時的普遍 "
651
+ "Python 將 ``pow(0, 0)`` 及 ``0 ** 0`` 定義為 ``1`` 這是程式語言的普遍 "
652
652
"做法。"
653
653
654
654
#: ../../library/stdtypes.rst:352
@@ -666,7 +666,7 @@ msgid ""
666
666
"property."
667
667
msgstr ""
668
668
"請參閱 `Unicode 標準 <https://unicode.org/Public/UNIDATA/extracted/"
669
- "DerivedNumericType.txt>`_ 以了解具有 ``Nd`` 屬性的碼位完整列表 。"
669
+ "DerivedNumericType.txt>`_ 以了解具有 ``Nd`` 屬性的 code points 完整列表 。"
670
670
671
671
#: ../../library/stdtypes.rst:359
672
672
msgid ""
@@ -737,7 +737,7 @@ msgid ""
737
737
"``~`` has the same priority as the other unary numeric operations (``+`` and "
738
738
"``-``)."
739
739
msgstr ""
740
- "二位元運算的優先順序皆低於數字運算 ,但高於比較運算;一元運算 ``~`` 與其他一元"
740
+ "二元位元運算的優先順序皆低於數字運算 ,但高於比較運算;一元運算 ``~`` 與其他一元"
741
741
"數值運算有一致的優先順序(``+`` 及 ``-``)。"
742
742
743
743
#: ../../library/stdtypes.rst:410
@@ -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 "*x* 及 *y* 的位元 :dfn:`or `"
753
+ msgstr "*x* 及 *y* 的位元 :dfn:`或 `"
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 "*x* 及 *y* 的位元 :dfn:`exclusive or `"
768
+ msgstr "*x* 及 *y* 的位元 :dfn:`邏輯互斥或 `"
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 "*x* 及 *y* 的位元 :dfn:`and `"
776
+ msgstr "*x* 及 *y* 的位元 :dfn:`與 `"
777
777
778
778
#: ../../library/stdtypes.rst:424
779
779
msgid "``x << n``"
@@ -842,8 +842,8 @@ msgid ""
842
842
"The int type implements the :class:`numbers.Integral` :term:`abstract base "
843
843
"class`. In addition, it provides a few more methods:"
844
844
msgstr ""
845
- "整數型別實作了 :class:`numbers.Integral` :term:`abstract base class`。此外, "
846
- "它提供了一些 methods:"
845
+ "整數型別實作了 :class:`numbers.Integral` :term:`抽象類別 < abstract base class>` "
846
+ "。此外, 它提供了一些 methods:"
847
847
848
848
#: ../../library/stdtypes.rst:457
849
849
msgid ""
@@ -877,7 +877,7 @@ msgid ""
877
877
"Return the number of ones in the binary representation of the absolute value "
878
878
"of the integer. This is also known as the population count. Example::"
879
879
msgstr ""
880
- "回傳在絕對值表示的二進位中 1 的個數。這也被稱作母體計數 。舉例來說: ::"
880
+ "回傳在絕對值表示的二進位中 1 的個數。這也被稱作母體計數。舉例來說: ::"
881
881
882
882
#: ../../library/stdtypes.rst:504
883
883
msgid "Return an array of bytes representing an integer."
@@ -941,8 +941,8 @@ msgid ""
941
941
"The argument *bytes* must either be a :term:`bytes-like object` or an "
942
942
"iterable producing bytes."
943
943
msgstr ""
944
- "引數 *bytes* 必須是一個 :term:`bytes-like object` 或是一個產生位元組的可疊代 "
945
- "物件 。"
944
+ "引數 *bytes* 必須是一個 :term:`類位元組物件 < bytes-like object>` "
945
+ "或是一個產生位元組的可疊代物件 。"
946
946
947
947
#: ../../library/stdtypes.rst:574
948
948
msgid ""
@@ -992,8 +992,8 @@ msgid ""
992
992
"The float type implements the :class:`numbers.Real` :term:`abstract base "
993
993
"class`. float also has the following additional methods."
994
994
msgstr ""
995
- "浮點數型別實作了 :class:`numbers.Real` :term:`abstract base class`。浮點數也 "
996
- "有下列附加 methods。"
995
+ "浮點數型別實作了 :class:`numbers.Real` :term:`抽象類別 < abstract base class>` "
996
+ "。浮點數也有下列附加 methods。"
997
997
998
998
#: ../../library/stdtypes.rst:627
999
999
msgid ""
@@ -1117,16 +1117,16 @@ msgstr ""
1117
1117
"值型別的雜湊是基於一個數學函式,它對於任何有理數都是定義的,因此適用於所有 :"
1118
1118
"class:`int` 和 :class:`fractions.Fraction` 的實例,以及所有有限的 :class:"
1119
1119
"`float` 和 :class:`decimal.Decimal` 的實例。基本上,這個函式是由簡化的 modulo(模數) ``P`` 給出的一個固定的質"
1120
- "數 ``P`` 。 ``P`` 的值作為 :data:`sys.hash_info` 的 :attr:"
1120
+ "數 ``P``。 ``P`` 的值作為 :data:`sys.hash_info` 的 :attr:"
1121
1121
"`modulus` 屬性提供給 Python。"
1122
1122
1123
1123
#: ../../library/stdtypes.rst:723
1124
1124
msgid ""
1125
1125
"Currently, the prime used is ``P = 2**31 - 1`` on machines with 32-bit C "
1126
1126
"longs and ``P = 2**61 - 1`` on machines with 64-bit C longs."
1127
1127
msgstr ""
1128
- "目前,使用的質數是 ``P = 2**31 - 1`` 在具有 32 位元 C longs 的機器上,並且 ``P "
1129
- "= 2**61 - 1`` 在具有 64 位元 C longs 的機器上 。"
1128
+ "目前在具有 32 位元 C longs 的機器上所使用的質數是 ``P = 2**31 - 1``,而在具有 64 "
1129
+ "位元 C longs 的機器上為 ``P = 2**61 - 1`` 。"
1130
1130
1131
1131
#: ../../library/stdtypes.rst:726
1132
1132
msgid "Here are the rules in detail:"
@@ -1180,7 +1180,7 @@ msgid ""
1180
1180
msgstr ""
1181
1181
"對於一個 :class:`complex` 值 ``z``,實部和虛部的雜湊值藉由 ``hash(z."
1182
1182
"real) + sys.hash_info.imag * hash(z.imag)`` 的計算進行組合,對 ``2**sys.hash_info."
1183
- "width`` 取模數使其界於 ``range(-2**(sys.hash_info.width - 1), 2**(sys."
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
@@ -1237,8 +1237,8 @@ msgid ""
1237
1237
"1, respectively. However, relying on this is discouraged; explicitly convert "
1238
1238
"using :func:`int` instead."
1239
1239
msgstr ""
1240
- ":class:`bool` 是 :class:`int` 的子類別(見 :ref:`typesnumeric`)。在許多數值上 "
1241
- "下文中 ,``False`` 和 ``True`` 分別像整數 0 和 1 一樣。然而,不鼓勵依賴這一點;請"
1240
+ ":class:`bool` 是 :class:`int` 的子類別(見 :ref:`typesnumeric`)。在許多數值 "
1241
+ "情境中 ,``False`` 和 ``True`` 分別像整數 0 和 1 一樣。然而,不鼓勵依賴這一點;請"
1242
1242
"使用 :func:`int` 進行顯式轉換。"
1243
1243
1244
1244
#: ../../library/stdtypes.rst:841
@@ -1259,7 +1259,7 @@ msgstr ""
1259
1259
msgid ""
1260
1260
"One method needs to be defined for container objects to provide :term:"
1261
1261
"`iterable` support:"
1262
- msgstr "需要為容器物件定義一個 method 來提供 :term:`iterable` 支援:"
1262
+ msgstr "需要為容器物件定義一個 method 來提供 :term:`可疊代性 < iterable> ` 支援:"
1263
1263
1264
1264
#: ../../library/stdtypes.rst:861
1265
1265
msgid ""
@@ -1272,7 +1272,7 @@ msgid ""
1272
1272
"member:`~PyTypeObject.tp_iter` slot of the type structure for Python objects "
1273
1273
"in the Python/C API."
1274
1274
msgstr ""
1275
- "回傳一個 :term:`iterator` 物件。該物件需要支援下述的疊代器協定。如果一個容器"
1275
+ "回傳一個 :term:`疊代器 < iterator> ` 物件。該物件需要支援下述的疊代器協定。如果一個容器"
1276
1276
"支援不同型別的疊代,則可以提供額外的 methods 來專門請求這些疊代型別的疊代器。(支"
1277
1277
"援多種形式疊代的物件的一個例子是支援廣度優先和深度優先遍歷的樹結構。)此 method "
1278
1278
"對應 Python/C API 中 Python 物件的型別結構的 :c:member:`~PyTypeObject."
@@ -1292,7 +1292,7 @@ msgid ""
1292
1292
"`in` statements. This method corresponds to the :c:member:`~PyTypeObject."
1293
1293
"tp_iter` slot of the type structure for Python objects in the Python/C API."
1294
1294
msgstr ""
1295
- "回傳 :term:`iterator` 物件本身。這是為了允許容器和疊代器都可以與 :keyword:"
1295
+ "回傳 :term:`疊代器 < iterator> ` 物件本身。這是為了允許容器和疊代器都可以與 :keyword:"
1296
1296
"`for` 和 :keyword:`in` 在陳述式中使用。此 method 對應於 Python/C API 中 Python 物件的型"
1297
1297
"別結構的 :c:member:`~PyTypeObject.tp_iter` 插槽。"
1298
1298
@@ -1303,7 +1303,7 @@ msgid ""
1303
1303
"the :c:member:`~PyTypeObject.tp_iternext` slot of the type structure for "
1304
1304
"Python objects in the Python/C API."
1305
1305
msgstr ""
1306
- "從 :term:`iterator` 回傳下一個項目。如果沒有更多項目,則引發 :exc:"
1306
+ "從 :term:`疊代器 < iterator> ` 回傳下一個項目。如果沒有更多項目,則引發 :exc:"
1307
1307
"`StopIteration` 例外。此 method 對應於 Python/C API 中Python 物件的型別結構的 :c:"
1308
1308
"member:`~PyTypeObject.tp_iternext` 插槽。"
1309
1309
0 commit comments