8000 Translate `library/stdtypes.po` rst: 78-198 by beccalzh · Pull Request #697 · python/python-docs-zh-tw · GitHub
[go: up one dir, main page]

Skip to content

Translate library/stdtypes.po rst: 78-198 #697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Nov 6, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 48 additions & 17 deletions library/stdtypes.po
8000
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,18 @@ msgstr ""

#: ../../library/stdtypes.rst:78
msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"
msgstr ""
msgstr "Boolean(布林)運算 --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"

#: ../../library/stdtypes.rst:82
msgid "These are the Boolean operations, ordered by ascending priority:"
msgstr ""
msgstr "下方為Boolean運算,按優先順序排序:"

#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:143
#: ../../library/stdtypes.rst:275 ../../library/stdtypes.rst:363
#: ../../library/stdtypes.rst:413 ../../library/stdtypes.rst:961
#: ../../library/stdtypes.rst:1166
msgid "Operation"
msgstr ""
msgstr "運算"

#: ../../library/stdtypes.rst:85 ../../library/stdtypes.rst:275
#: ../../library/stdtypes.rst:363 ../../library/stdtypes.rst:413
Expand All @@ -146,7 +146,7 @@ msgstr "``x or y``"

#: ../../library/stdtypes.rst:87
msgid "if *x* is true, then *x*, else *y*"
msgstr ""
msgstr "假如 *x* 為真,則 *x*,否則 *y*"

#: ../../library/stdtypes.rst:87 ../../library/stdtypes.rst:285
#: ../../library/stdtypes.rst:963 ../../library/stdtypes.rst:966
Expand All @@ -161,7 +161,7 @@ msgstr "``x and y``"

#: ../../library/stdtypes.rst:90
msgid "if *x* is false, then *x*, else *y*"
msgstr ""
msgstr "假如 *x* 為假,則 *x*,否則 *y*"

#: ../../library/stdtypes.rst:90 ../../library/stdtypes.rst:288
#: ../../library/stdtypes.rst:308 ../../library/stdtypes.rst:1205
Expand All @@ -176,7 +176,7 @@ msgstr "``not x``"

#: ../../library/stdtypes.rst:93
msgid "if *x* is false, then ``True``, else ``False``"
msgstr ""
msgstr "假如 *x* 為假,則 ``True``,否則 ``False``"

#: ../../library/stdtypes.rst:93 ../../library/stdtypes.rst:975
#: ../../library/stdtypes.rst:1208 ../../library/stdtypes.rst:2430
Expand All @@ -199,22 +199,28 @@ msgid ""
"This is a short-circuit operator, so it only evaluates the second argument "
"if the first one is false."
msgstr ""
"這是一個短路運算子,所以他只有在第一個所以他只有在第一個變數為假時,"
"才會才會對第二個變數求值。"

#: ../../library/stdtypes.rst:109
msgid ""
"This is a short-circuit operator, so it only evaluates the second argument "
"if the first one is true."
msgstr ""
"這是一個短路運算子,所以他只有在第一個所以他只有在第一個變數為真時,"
"才會才會對第二個變數求值。"

#: ../../library/stdtypes.rst:113
msgid ""
"``not`` has a lower priority than non-Boolean operators, so ``not a == b`` "
"is interpreted as ``not (a == b)``, and ``a == not b`` is a syntax error."
msgstr ""
"``not`` 比非Boolean運算子有較低的優先權,因此 ``not a == b`` "
"可解讀為 ``not (a == b)``,而 ``a == not b`` 會導致語法錯誤。"

#: ../../library/stdtypes.rst:120
msgid "Comparisons"
msgstr ""
msgstr "比較運算"

#: ../../library/stdtypes.rst:134
msgid ""
Expand All @@ -224,80 +230,85 @@ msgid ""
"< y and y <= z``, except that *y* is evaluated only once (but in both cases "
"*z* is not evaluated at all when ``x < y`` is found to be false)."
msgstr ""
"在Python裡共有8種比較運算。他們的優先順序都相同"
"(皆優先於Boolean運算)。比較運算"
"可以任意的串連;例如, ``x < y <= z`` 等同於 "
"``x < y and y <= z``, 差異只在於前者的 *y* 只有被求值一次(但在這兩個例子"
"中,當 ``x < y`` 為假時, *z* 皆不會被求值)。"

#: ../../library/stdtypes.rst:140
msgid "This table summarizes the comparison operations:"
msgstr ""
msgstr "這個表格統整所有比較運算:"

#: ../../library/stdtypes.rst:143 ../../library/stdtypes.rst:2393
#: ../../library/stdtypes.rst:2416 ../../library/stdtypes.rst:3611
#: ../../library/stdtypes.rst:3634
msgid "Meaning"
msgstr ""
msgstr "含義"

#: ../../library/stdtypes.rst:145
msgid "``<``"
msgstr "``<``"

#: ../../library/stdtypes.rst:145
msgid "strictly less than"
msgstr ""
msgstr "小於"

#: ../../library/stdtypes.rst:147
msgid "``<=``"
msgstr "``<=``"

#: ../../library/stdtypes.rst:147
msgid "less than or equal"
msgstr ""
msgstr "小於等於"

#: ../../library/stdtypes.rst:149
msgid "``>``"
msgstr "``>``"

#: ../../library/stdtypes.rst:149
msgid "strictly greater than"
msgstr ""
msgstr "大於"

#: ../../library/stdtypes.rst:151
msgid "``>=``"
msgstr "``>=``"

#: ../../library/stdtypes.rst:151
msgid "greater than or equal"
msgstr ""
msgstr "大於等於"

#: ../../library/stdtypes.rst:153
msgid "``==``"
msgstr "``==``"

#: ../../library/stdtypes.rst:153
msgid "equal"
msgstr ""
msgstr "等於"

#: ../../library/stdtypes.rst:155
msgid "``!=``"
msgstr "``!=``"

#: ../../library/stdtypes.rst:155
msgid "not equal"
msgstr ""
msgstr "不等於"

#: ../../library/stdtypes.rst:157
msgid "``is``"
msgstr "``is``"

#: ../../library/stdtypes.rst:157
msgid "object identity"
msgstr ""
msgstr "物件識別"

#: ../../library/stdtypes.rst:159
msgid "``is not``"
msgstr "``is not``"

#: ../../library/stdtypes.rst:159
msgid "negated object identity"
msgstr ""
msgstr "否定的物件識別"

#: ../../library/stdtypes.rst:166
msgid ""
Expand All @@ -308,12 +319,20 @@ msgid ""
"example, they raise a :exc:`TypeError` exception when one of the arguments "
"is a complex number."
msgstr ""
"除了不同的數字類型外,不同類型的物件不能進行相等比較。"
"運算子 ``==`` 總有定義,但在某些物件類型(例如,"
"class物件)時,運算子會等同於 :keyword:`is`。 其他運算子 ``<``、``<=``、"
"``>`` 及 ``>=`` 皆僅在有意義的有意義的部分進行定義;例如,"
"當其中一個引數為複數時,"
"將導致一個 :exc:`TypeError` 的例外。"
mattwang44 marked this conversation as resolved.
Show resolved Hide resolved

#: ../../library/stdtypes.rst:180
msgid ""
"Non-identical instances of a class normally compare as non-equal unless the "
"class defines the :meth:`~object.__eq__` method."
msgstr ""
"一個class的非相同實例通常會比較為不相等,除非"
"class定義 :meth:`~object.__eq__` method。"

#: ../../library/stdtypes.rst:183
msgid ""
Expand All @@ -324,20 +343,32 @@ msgid ""
"meth:`~object.__eq__` are sufficient, if you want the conventional meanings "
"of the comparison operators)."
msgstr ""
"一個class的實例不可以與其他相同class的實例"
"或其他物件的類別進行排序,除非class定義足夠的"
"method,包含 :meth:`~object.__lt__` 、 :meth:`~object.__le__` 、 :meth:`~object."
"__gt__` 及 :meth:`~object.__ge__` (一般來說,使用 :meth:`~object.__lt__` 及 :"
"meth:`~object.__eq__` 就可以滿足"
"常規意義上的比較運算)。"
67ED

#: ../../library/stdtypes.rst:190
msgid ""
"The behavior of the :keyword:`is` and :keyword:`is not` operators cannot be "
"customized; also they can be applied to any two objects and never raise an "
"exception."
msgstr ""
" :keyword:`is` 與 :keyword:`is not` 的運算無法使用自定義"
";這兩個運算也可以運用在任意兩個物件且不會導致"
"例外。"

#: ../../library/stdtypes.rst:198
msgid ""
"Two more operations with the same syntactic priority, :keyword:`in` and :"
"keyword:`not in`, are supported by types that are :term:`iterable` or "
"implement the :meth:`__contains__` method."
msgstr ""
"此外,擁有相同的語法優先序的 :keyword:`in` 及 :keyword:`not in` 兩種運算"
"皆可支援 :term:`iterable` 的型別或"
"應用在 :meth:`__contains__` 的method中。"

#: ../../library/stdtypes.rst:205
msgid "Numeric Types --- :class:`int`, :class:`float`, :class:`complex`"
Expand Down
0