@@ -162,7 +162,7 @@ msgstr "``x and y``"
162
162
163
163
#: ../../library/stdtypes.rst:90
164
164
msgid "if *x* is false, then *x*, else *y*"
165
- msgstr "假如 *x* 為假 ,則 *x*,否則 *y*"
165
+ msgstr "假如 *x* 為 false ,則 *x*,否則 *y*"
166
166
167
167
#: ../../library/stdtypes.rst:90 ../../library/stdtypes.rst:288
168
168
#: ../../library/stdtypes.rst:308 ../../library/stdtypes.rst:1205
@@ -177,7 +177,7 @@ msgstr "``not x``"
177
177
178
178
#: ../../library/stdtypes.rst:93
179
179
msgid "if *x* is false, then ``True``, else ``False``"
180
- msgstr "假如 *x* 為假 ,則 ``True``,否則 ``False``"
180
+ msgstr "假如 *x* 為 false ,則 ``True``,否則 ``False``"
181
181
182
182
#: ../../library/stdtypes.rst:93 ../../library/stdtypes.rst:975
183
183
#: ../../library/stdtypes.rst:1208 ../../library/stdtypes.rst:2430
@@ -200,14 +200,14 @@ msgid ""
200
200
"This is a short-circuit operator, so it only evaluates the second argument "
201
201
"if the first one is false."
202
202
msgstr ""
203
- "這是一個短路運算子,所以他只有在第一個引數為假時 ,才會對第二個引數求值。"
203
+ "這是一個短路運算子,所以他只有在第一個引數為 false 時 ,才會對第二個引數求值。"
204
204
205
205
#: ../../library/stdtypes.rst:109
206
206
msgid ""
207
207
"This is a short-circuit operator, so it only evaluates the second argument "
208
208
"if the first one is true."
209
209
msgstr ""
210
- "這是一個短路運算子,所以他只有在第一個引數為真時 ,才會對第二個引數求值。"
210
+ "這是一個短路運算子,所以他只有在第一個引數為 true 時 ,才會對第二個引數求值。"
211
211
212
212
#: ../../library/stdtypes.rst:113
213
213
msgid ""
@@ -231,7 +231,7 @@ msgid ""
231
231
msgstr ""
232
232
"在 Python 裡共有 8 種比較運算。他們的優先順序都相同(皆優先於 Boolean 運"
233
233
"算)。比較運算可以任意的串連;例如,``x < y <= z`` 等同於 ``x < y and y <= "
234
- "z``,差異只在於前者的 *y* 只有被求值一次(但在這兩個例子中,當 ``x < y`` 為假 "
234
+ "z``,差異只在於前者的 *y* 只有被求值一次(但在這兩個例子中,當 ``x < y`` 為 false "
235
235
"時,*z* 皆不會被求值)。"
236
236
237
237
#: ../../library/stdtypes.rst:140
@@ -715,7 +715,7 @@ msgstr "大於等於 *x* 的最小 :class:`~numbers.Integral`"
715
715
msgid ""
716
716
"For additional numeric operations see the :mod:`math` and :mod:`cmath` "
717
717
"modules."
718
- msgstr "關於其他數值運算式請詳見 :mod:`math` 及 :mod:`cmath` 模組 "
718
+ msgstr "關於其他數值運算請詳見 :mod:`math` 及 :mod:`cmath` modules(模組)。 "
719
719
720
720
#: ../../library/stdtypes.rst:388
721
721
msgid "Bitwise Operations on Integer Types"
@@ -835,15 +835,15 @@ msgstr ""
835
835
836
836
#: ../../library/stdtypes.rst:450
837
837
msgid "Additional Methods on Integer Types"
838
- msgstr "整數型別的附加方法 "
838
+ msgstr "整數型別的附加 methods "
839
839
840
840
#: ../../library/stdtypes.rst:452
841
841
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
845
"整數型別實作了 :class:`numbers.Integral` :term:`abstract base class`。此外,"
846
- "它提供了一些方法 :"
846
+ "它提供了一些 methods :"
847
847
848
848
#: ../../library/stdtypes.rst:457
849
849
msgid ""
@@ -985,15 +985,15 @@ msgstr "回傳 ``True``。為了與 :meth:`float.is_integer` 的鴨子型別相
985
985
986
986
#: ../../library/stdtypes.rst:620
987
987
msgid "Additional Methods on Float"
988
- msgstr "浮點數的附加方法 "
988
+ msgstr "浮點數的附加 methods "
989
989
990
990
#: ../../library/stdtypes.rst:622
991
991
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
995
"浮點數型別實作了 :class:`numbers.Real` :term:`abstract base class`。浮點數也"
996
- "有下列附加方法 。"
996
+ "有下列附加 methods 。"
997
997
998
998
#: ../../library/stdtypes.rst:627
999
999
msgid ""
@@ -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
+ "兩個 methods 皆支援十六進位字串之間的轉換 。由於 Python 的浮點數內部以二進位數值儲"
1024
1024
"存,將浮點數轉換為或從 *十進位* 字串通常涉及一個小的四捨五入誤差。相反地,十"
1025
1025
"六進位字串允許精確表示和指定浮點數。這在除錯和數值工作中可能會有用。"
1026
1026
@@ -1031,22 +1031,22 @@ msgid ""
1031
1031
"leading ``0x`` and a trailing ``p`` and exponent."
1032
1032
msgstr ""
1033
1033
"回傳浮點數的十六進位字串表示。對於有限浮點數,此表示方式總是包含一個前導 "
1034
- "``0x`` 及一個尾隨 ``p`` 和指數。"
1034
+ "``0x`` 及一個尾部 ``p`` 和指數。"
1035
1035
1036
1036
#: ../../library/stdtypes.rst:661
1037
1037
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
+ "Class method 回傳由十六進位字串 *s* 表示的浮點數。字串 *s* 可能有前導及尾部的空白 。"
1042
1042
1043
1043
#: ../../library/stdtypes.rst:666
1044
1044
msgid ""
1045
1045
"Note that :meth:`float.hex` is an instance method, while :meth:`float."
1046
1046
"fromhex` is a class method."
1047
1047
msgstr ""
1048
- "請注意 :meth:`float.hex` 是一個實例方法 ,而 :meth:`float.fromhex` 是一個類別方 "
1049
- "法 。"
1048
+ "請注意 :meth:`float.hex` 是一個實例 method ,而 :meth:`float.fromhex` 是一個 "
1049
+ "class method 。"
1050
1050
1051
1051
#: ../../library/stdtypes.rst:669
1052
1052
msgid "A hexadecimal string takes the form::"
@@ -1111,13 +1111,13 @@ msgid ""
1111
1111
"of :data:`sys.hash_info`."
1112
1112
msgstr ""
1113
1113
"對於數字 ``x`` 和 ``y``,可能是不同型別,當 ``x == y`` 時,``hash(x) == "
1114
- "hash(y)`` 是一個要求( 詳見 :meth:`~object.__hash__` 方法的文件以獲得更多細 "
1115
- "節)。為了實作的便利性和效率跨越各種數值型別(包括 :class:`int`, :class:"
1116
- "`float`, :class:`decimal.Decimal` 和 :class:`fractions.Fraction`)Python 的數"
1114
+ "hash(y)`` 是一個要求( 詳見 :meth:`~object.__hash__` method 的文件以獲得更多細 "
1115
+ "節)。為了實作的便利性和效率跨越各種數值型別(包括 :class:`int`、 :class:"
1116
+ "`float`、 :class:`decimal.Decimal` 和 :class:`fractions.Fraction`)Python 的數"
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
@@ -1194,21 +1194,21 @@ msgstr ""
1194
1194
1195
1195
#: ../../library/stdtypes.rst:808
1196
1196
msgid "Boolean Type - :class:`bool`"
1197
- msgstr "布林型別 - :class:`bool`"
1197
+ msgstr "Boolean 型別 - :class:`bool`"
1198
1198
1199
1199
#: ../../library/stdtypes.rst:810
1200
1200
msgid ""
1201
1201
"Booleans represent truth values. The :class:`bool` type has exactly two "
1202
1202
"constant instances: ``True`` and ``False``."
1203
1203
msgstr ""
1204
- "布林值代表 truth values(真值)。:class:`bool` 型別有兩個常數實例:``True`` 和 ``False``。"
1204
+ "Boolean 值代表 truth values(真值)。:class:`bool` 型別有兩個常數實例:``True`` 和 ``False``。"
1205
1205
1206
1206
#: ../../library/stdtypes.rst:818
1207
1207
msgid ""
1208
1208
"The built-in function :func:`bool` converts any value to a boolean, if the "
1209
1209
"value can be interpreted as a truth value (see section :ref:`truth` above)."
1210
1210
msgstr ""
1211
- "內建函式 :func:`bool` 將任何值轉換為布林值 ,如果該值可以被直譯為一個 truth value(真值)(見"
1211
+ "內建函式 :func:`bool` 將任何值轉換為 boolean 值 ,如果該值可以被直譯為一個 truth value(真值)(見"
1212
1212
"上面的 :ref:`truth` 章節)。"
1213
1213
1214
1214
#: ../../library/stdtypes.rst:821
@@ -1220,8 +1220,8 @@ msgid ""
1220
1220
"``!=`` should be preferred over ``&``, ``|`` and ``^``."
1221
1221
msgstr ""
1222
1222
"對於邏輯運算,使用 :ref:`boolean operators <boolean>` ``and``、``or`` 和 "
1223
- "``not``。當將位元運算子 ``&``、``|``、``^`` 應用於兩個布林值時 ,它們會回傳一"
1224
- "個等同於邏輯運算 \" and\" 、\" or\" 、\" xor\" 的布林值 。然而,應該優先使用邏輯運"
1223
+ "``not``。當將位元運算子 ``&``、``|``、``^`` 應用於兩個 boolean 值時 ,它們會回傳一"
1224
+ "個等同於邏輯運算 \" and\" 、\" or\" 、\" xor\" 的 boolean 值 。然而,應該優先使用邏輯運"
1225
1225
"算子 ``and``、``or`` 和 ``!=`` 而不是 ``&``、``|`` 和 ``^``。"
1226
1226
1227
1227
#: ../../library/stdtypes.rst:830
@@ -1252,14 +1252,14 @@ 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 支援對容器的疊代概念。這是實作兩種不同的 methods;這些方法被用於允許使用 "
1256
+ "者自定義的 classes 以支援疊代。序列則總是支援這些疊代 methods ,在下方有更詳細的描述。"
1257
1257
1258
1258
#: ../../library/stdtypes.rst:854
1259
1259
msgid ""
1260
1260
"One method needs to be defined for container objects to provide :term:"
1261
1261
"`iterable` support:"
1262
- msgstr "需要為容器物件定義一個方法來提供 :term:`iterable` 支援:"
1262
+ msgstr "需要為容器物件定義一個 method 來提供 :term:`iterable` 支援:"
1263
1263
1264
1264
#: ../../library/stdtypes.rst:861
1265
1265
msgid ""
@@ -1273,8 +1273,8 @@ msgid ""
1273
1273
"in the Python/C API."
1274
1274
msgstr ""
1275
1275
"回傳一個 :term:`iterator` 物件。該物件需要支援下述的疊代器協定。如果一個容器"
1276
- "支援不同型別的疊代,則可以提供額外的方法來專門請求這些疊代型別的疊代器 。(支"
1277
- "援多種形式疊代的物件的一個例子是支援廣度優先和深度優先遍歷的樹結構。)此方法 "
1276
+ "支援不同型別的疊代,則可以提供額外的 methods 來專門請求這些疊代型別的疊代器 。(支"
1277
+ "援多種形式疊代的物件的一個例子是支援廣度優先和深度優先遍歷的樹結構。)此 method "
1278
1278
"對應 Python/C API 中 Python 物件的型別結構的 :c:member:`~PyTypeObject."
1279
1279
"tp_iter` 插槽。"
1280
1280
@@ -1283,7 +1283,7 @@ msgid ""
1283
1283
"The iterator objects themselves are required to support the following two "
1284
1284
"methods, which together form the :dfn:`iterator protocol`:"
1285
1285
msgstr ""
1286
- "疊代器物件本身需要支援下列兩個方法,這兩個方法一起形成了 :dfn:`疊代器協定`:"
1286
+ "疊代器物件本身需要支援下列兩個 methods,他們一起形成了 :dfn:`疊代器協定`:"
1287
1287
1288
1288
#: ../../library/stdtypes.rst:876
1289
1289
msgid ""
@@ -1293,7 +1293,7 @@ msgid ""
1293
1293
"tp_iter` slot of the type structure for Python objects in the Python/C API."
1294
1294
msgstr ""
1295
1295
"回傳 :term:`iterator` 物件本身。這是為了允許容器和疊代器都可以與 :keyword:"
1296
- "`for` 和 :keyword:`in` 陳述使用。此方法對應於 Python/C API 中 Python 物件的型"
1296
+ "`for` 和 :keyword:`in` 在陳述式中使用。此 method 對應於 Python/C API 中 Python 物件的型"
1297
1297
"別結構的 :c:member:`~PyTypeObject.tp_iter` 插槽。"
1298
1298
1299
1299
#: ../../library/stdtypes.rst:885
@@ -1304,7 +1304,7 @@ msgid ""
1304
1304
"Python objects in the Python/C API."
1305
1305
msgstr ""
1306
1306
"從 :term:`iterator` 回傳下一個項目。如果沒有更多項目,則引發 :exc:"
1307
- "`StopIteration` 例外。此方法對應於 Python/C API 中Python 物件的型別結構的 :c:"
1307
+ "`StopIteration` 例外。此 method 對應於 Python/C API 中Python 物件的型別結構的 :c:"
1308
1308
"member:`~PyTypeObject.tp_iternext` 插槽。"
1309
1309
1310
1310
#: ../../library/stdtypes.rst:890
@@ -1323,7 +1323,7 @@ msgid ""
1323
1323
"`StopIteration`, it must continue to do so on subsequent calls. "
1324
1324
"Implementations that do not obey this property are deemed broken."
1325
1325
msgstr ""
1326
- "一旦疊代器的 :meth:`~iterator.__next__` 方法引發 :exc:`StopIteration`,則它必"
1326
+ "一旦疊代器的 :meth:`~iterator.__next__` method 引發 :exc:`StopIteration`,則它必"
1327
1327
"須在後續呼叫中繼續這樣做。不遵守此屬性的實作被認為是有問題的。"
1328
1328
1329
1329
#: ../../library/stdtypes.rst:903
0 commit comments