Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Translatelibrary/stdtypes.po (intro & true value testing)#161

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Changes fromall 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
33 changes: 26 additions & 7 deletionslibrary/stdtypes.po
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,43 +4,49 @@
#
# Translators:
# Leon H., 2017
# Adrian Liaw <adrianliaw2000@gmail.com>, 2018
# Matt Wang <mattwang44@gmail.com>, 2021
msgid ""
msgstr ""
"Project-Id-Version: Python 3.10\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-05-21 17:35+0000\n"
"PO-Revision-Date:2018-05-23 16:11+0000\n"
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
"PO-Revision-Date:2022-06-12 15:22+0800\n"
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.1\n"

#: ../../library/stdtypes.rst:8
msgid "Built-in Types"
msgstr "內建型態"
msgstr "內建型別"

#: ../../library/stdtypes.rst:10
msgid ""
"The following sections describe the standard types that are built into the "
"interpreter."
msgstr ""
msgstr "以下章節描述了直譯器中内建的標準型別。"

#: ../../library/stdtypes.rst:15
msgid ""
"The principal built-in types are numerics, sequences, mappings, classes, "
"instances and exceptions."
msgstr ""
msgstr "主要內建型別為數字、序列、映射、class(類別)、實例和例外。"

#: ../../library/stdtypes.rst:18
msgid ""
"Some collection classes are mutable. The methods that add, subtract, or "
"rearrange their members in place, and don't return a specific item, never "
"return the collection instance itself but ``None``."
msgstr ""
"有些集合類別是 mutable(可變的)。那些用於原地 (in-place) 加入、移除或重新排"
"列其成員且不回傳特定項的 method(方法),也只會回傳 ``None`` 而非集合實例自"
"己。"

#: ../../library/stdtypes.rst:22
msgid ""
Expand All@@ -50,16 +56,21 @@ msgid ""
"slightly different :func:`str` function). The latter function is implicitly "
"used when an object is written by the :func:`print` function."
msgstr ""
"某些操作已被多種物件型別支援;特別是實務上所有物件都已經可以做相等性比較、真"
"值檢測及被轉換為字串(使用 :func:`repr` 函式或稍有差異的 :func:`str` 函式),"
"後者為當物件傳入 :func:`print` 函式印出時在背後被調用的函式。"

#: ../../library/stdtypes.rst:32
msgid "Truth Value Testing"
msgstr ""
msgstr "真值檢測"

#: ../../library/stdtypes.rst:41
msgid ""
"Any object can be tested for truth value, for use in an :keyword:`if` or :"
"keyword:`while` condition or as operand of the Boolean operations below."
msgstr ""
"任何物件都可以進行檢測以判斷是否為真值,以便在 :keyword:`if` 或 :keyword:"
"`while` 條件中使用,或是作為如下所述 boolean(布林)運算之運算元所用。"

#: ../../library/stdtypes.rst:46
msgid ""
Expand All@@ -68,22 +79,27 @@ msgid ""
"that returns zero, when called with the object. [1]_ Here are most of the "
"built-in objects considered false:"
msgstr ""
"預設情況下,一個物件會被視為真值,除非它的 class 定義了會回傳 ``False`` 的 :"
"meth:`__bool__` method 或是定義了會回傳零的 :meth:`__len__` method。[1]_ "
"以下列出了大部分會被視為 false 的內建物件:"

#: ../../library/stdtypes.rst:55
msgid "constants defined to be false: ``None`` and ``False``."
msgstr ""
msgstr "定義為 false 之常數:``None`` 與 ``False``。"

#: ../../library/stdtypes.rst:57
msgid ""
"zero of any numeric type: ``0``, ``0.0``, ``0j``, ``Decimal(0)``, "
"``Fraction(0, 1)``"
msgstr ""
"任何數值型別的零:``0``、``0.0``、``0j``、``Decimal(0)``、``Fraction(0, 1)``"

#: ../../library/stdtypes.rst:60
msgid ""
"empty sequences and collections: ``''``, ``()``, ``[]``, ``{}``, ``set()``, "
"``range(0)``"
msgstr ""
"空的序列和集合:``''``、``()``、``[]``、``{}``、``set()``、``range(0)``"

#: ../../library/stdtypes.rst:69
msgid ""
Expand All@@ -92,6 +108,9 @@ msgid ""
"otherwise stated. (Important exception: the Boolean operations ``or`` and "
"``and`` always return one of their operands.)"
msgstr ""
"除非另有特別說明,產生 boolean 結果的操作或內建函式都會回傳 ``0`` 或 "
"``False`` 作為假值、``1`` 或 ``True`` 作為真值。(重要例外: boolean 運算 "
"``or`` 和 ``and`` 回傳的是其中一個運算元。)"

#: ../../library/stdtypes.rst:78
msgid "Boolean Operations --- :keyword:`!and`, :keyword:`!or`, :keyword:`!not`"
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp