Skip to content
Merged
Changes from 5 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
135961e
Translate faq/design.html#why-does-python-use-indentation-for-groupin…
SiriusKoan Aug 12, 2022
87cb8f0
Translate faq/design.html#why-are-floating-point-calculations-so-inac…
SiriusKoan Aug 14, 2022
e167727
Translate faq/design.html#why-are-python-strings-immutable
SiriusKoan Aug 14, 2022
d0783eb
Translate faq/design.html#why-must-self-be-used-explicitly-in-method-…
SiriusKoan Aug 14, 2022
66257ea
Translate faq/design.html#why-can-t-i-use-an-assignment-in-an-expression
SiriusKoan Aug 15, 2022
0cc8df4
Translate faq/design.html#why-does-python-use-methods-for-some-functi…
SiriusKoan Aug 15, 2022
be90f1f
Translate faq/design.html#why-is-join-a-string-method-instead-of-a-li…
SiriusKoan Aug 15, 2022
a3418ca
Translate faq/design.html#how-fast-are-exceptions
SiriusKoan Aug 15, 2022
00e6c03
Translate faq/design.html#why-isn-t-there-a-switch-or-case-statement-…
SiriusKoan Aug 15, 2022
7fcdf2c
Translate faq/design.html#can-t-you-emulate-threads-in-the-interprete…
SiriusKoan Aug 18, 2022
4813c28
Translate faq/design.html#why-can-t-lambda-expressions-contain-statem…
SiriusKoan Aug 18, 2022
bad48ad
Translate faq/design.html#can-python-be-compiled-to-machine-code-c-or…
SiriusKoan Aug 18, 2022
8b14c96
Translate faq/design.html#how-does-python-manage-memory
SiriusKoan Aug 19, 2022
64f7119
Translate faq/design.html#why-doesn-t-cpython-use-a-more-traditional-…
SiriusKoan Aug 19, 2022
e67d201
Translate faq/design.html#why-isn-t-all-memory-freed-when-cpython-exits
SiriusKoan Aug 19, 2022
a699463
Translate faq/design.html#why-are-there-separate-tuple-and-list-data-…
SiriusKoan Aug 19, 2022
04dde0a
Translate faq/design.html#how-are-lists-implemented-in-cpython
SiriusKoan Aug 22, 2022
b09d7a4
Translate faq/design.html#how-are-dictionaries-implemented-in-cpython
SiriusKoan Aug 23, 2022
caf4b1a
Translate faq/design.html#why-must-dictionary-keys-be-immutable
SiriusKoan Aug 23, 2022
0c984c6
Translate faq/design.html#why-doesn-t-list-sort-return-the-sorted-list
SiriusKoan Aug 23, 2022
44ae53a
Translate faq/design.html#how-do-you-specify-and-enforce-an-interface…
SiriusKoan Aug 23, 2022
769b665
Translate faq/design.html#why-is-there-no-goto
SiriusKoan Aug 23, 2022
86eecf1
Translate faq/design.html#why-can-t-raw-strings-r-strings-end-with-a-…
SiriusKoan Aug 23, 2022
17d9539
Translate faq/design.html#why-doesn-t-python-have-a-with-statement-fo…
SiriusKoan Aug 23, 2022
9448b4e
Translate faq/design.html#why-don-t-generators-support-the-with-state…
SiriusKoan Aug 23, 2022
19dfed6
Translate faq/design.html#why-are-colons-required-for-the-if-while-de…
SiriusKoan Aug 23, 2022
6cb34af
Translate faq/design.html#why-does-python-allow-commas-at-the-end-of-…
SiriusKoan Aug 23, 2022
550279d
fix: missing colon
SiriusKoan Aug 23, 2022
727711e
fix: add a space between plus sign
SiriusKoan Aug 25, 2022
d3eb726
fix: typo and glossary
SiriusKoan Aug 26, 2022
117f27d
Merge branch '3.10' of https://github.com/SiriusKoan/python-docs-zh-t…
SiriusKoan Aug 26, 2022
b2ef135
fix: glossary
SiriusKoan Aug 27, 2022
a405f6b
fix: use 問答集 instead of 問題 for FAQ
SiriusKoan Aug 27, 2022
641c0e1
fix: use 疊代 instead of 迭代
SiriusKoan Aug 27, 2022
ef7cb62
Merge branch '3.10' of https://github.com/SiriusKoan/python-docs-zh-t…
SiriusKoan Aug 27, 2022
f021b24
Merge branch '3.10' into 3.10
SiriusKoan Aug 28, 2022
63b3bda
fix: reserve English name
SiriusKoan Aug 29, 2022
38787a5
fix: wrong original content (http -> https)
SiriusKoan Aug 29, 2022
435c9db
fix: wrong original content (http -> https)
SiriusKoan Aug 29, 2022
9317d96
fix: compile error due to lack of spaces
SiriusKoan Aug 29, 2022
36df673
fix conflict
SiriusKoan Aug 29, 2022
59cbd5c
fix: space besides left parentheses
SiriusKoan Aug 29, 2022
6becc4f
fix: space besides left parentheses
SiriusKoan Aug 29, 2022
44abaeb
fix: original content
SiriusKoan Aug 30, 2022
64cdaf6
Merge branch '3.10' of https://github.com/SiriusKoan/python-docs-zh-t…
SiriusKoan Aug 30, 2022
2f4b8dd
fix: extra line break
SiriusKoan Aug 31, 2022
a7f2ac6
fix: translate begin/end
SiriusKoan Aug 31, 2022
b6594e3
fix: use parentheses to replace dash
SiriusKoan Aug 31, 2022
875a69d
fix: use comma
SiriusKoan Aug 31, 2022
2206ad5
fix: 表現 -> 行為
SiriusKoan Aug 31, 2022
21d327b
fix: use " to represent string
SiriusKoan Aug 31, 2022
cb24fcf
fix: redundant original content
SiriusKoan Aug 31, 2022
9012e88
fix: redundant original content
SiriusKoan Aug 31, 2022
777894c
fix: 值組 -> 元組 and use singular noun in translation
SiriusKoan Aug 31, 2022
70aa411
fix: add original content for 字串文本
SiriusKoan Aug 31, 2022
6bd7243
fix: redundant original content
SiriusKoan Aug 31, 2022
e650bde
fix: 上下文 -> 情境
SiriusKoan Aug 31, 2022
94eefb0
fix: move the original content of 字串文本 to its first occurence
SiriusKoan Aug 31, 2022
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions faq/design.po
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,32 @@ msgstr ""
msgid "Design and History FAQ"
msgstr "設計和歷史常見問答集"


#: ../../faq/design.rst:6
msgid "Contents"
msgstr "目錄"

#: ../../faq/design.rst:11
msgid "Why does Python use indentation for grouping of statements?"
msgstr "為何 Python 使用縮排來把陳述式 (statement) 分組?"
msgstr "為什麼 Python 使用縮排將陳述式進行分組?"

#: ../../faq/design.rst:13
msgid ""
"Guido van Rossum believes that using indentation for grouping is extremely "
"elegant and contributes a lot to the clarity of the average Python program. "
"Most people learn to love this feature after a while."
msgstr ""
"吉多·范羅蘇姆相信用縮排來分組是極度優雅,且對於一般 Python 程式是乾淨俐落的。"
"大多數人很快也愛上了這項特色。"
"Guido van Rossum 相信使用縮排來分組超級優雅,並且對提高一般 Python 程式的清晰度有許多貢獻。"
"許多人在學習一段時間之後就愛上了這個功能。"

#: ../../faq/design.rst:17
msgid ""
"Since there are no begin/end brackets there cannot be a disagreement between "
"grouping perceived by the parser and the human reader. Occasionally C "
"programmers will encounter a fragment of code like this::"
msgstr ""
"因為這裡沒有用 begin/end 包夾區塊,所以語法剖析器解析的分組和人理解的分組不會"
"有所歧異。偶爾 C 語言的程式人員會遇上像這樣的一段程式碼:\n"
"因為沒有開始/結束括號,因此剖析器和人類讀者感知到的分組就不存在分歧。"
"偶爾 C 語言的程式設計師會遇到這樣的程式碼片段:\n"
"\n"
"::"

Expand All @@ -64,6 +65,7 @@ msgstr ""
"即使是資深的 C 語言開發者有時也會盯著他許久,思考為何即便 ``x > y``\\ ,但 "
"``y`` 還是減少了。"


#: ../../faq/design.rst:31
msgid ""
"Because there are no begin/end brackets, Python is much less prone to coding-"
Expand Down Expand Up @@ -94,7 +96,7 @@ msgstr ""

#: ../../faq/design.rst:48
msgid "Why am I getting strange results with simple arithmetic operations?"
msgstr "為何我會從簡單的算術運算中得到奇怪的結果?"
msgstr "為什麼我會從簡單的數學運算得到奇怪的結果?"

#: ../../faq/design.rst:50
msgid "See the next question."
Expand All @@ -106,8 +108,7 @@ msgstr "為何浮點數運算如此不精確?"

#: ../../faq/design.rst:56
msgid "Users are often surprised by results like this::"
msgstr ""
"使用者常常對這種結果感到驚訝:\n"
msgstr "使用者時常對這樣的結果感到驚訝:\n"
"\n"
"::"

Expand Down Expand Up @@ -308,7 +309,7 @@ msgstr ""

#: ../../faq/design.rst:171
msgid "As Guido said:"
msgstr "如吉多所說:"
msgstr "如 Guido 所說:"

#: ../../faq/design.rst:173
msgid ""
Expand Down Expand Up @@ -564,8 +565,8 @@ msgid ""
"is an up-and-coming compiler of Python into C++ code, aiming to support the "
"full Python language."
msgstr ""
"`Cython <http://cython.org/>`_ 可以編譯一個調整過有選擇性註解的 Python 版"
"本。 `Nuitka <http://www.nuitka.net/>`_ 是一個有潛力編譯器,可以把 Python 編"
"`Cython <https://cython.org/>`_ 可以編譯一個調整過有選擇性註解的 Python 版"
"本。 `Nuitka <https://www.nuitka.net/>`_ 是一個有潛力編譯器,可以把 Python 編"
"譯成 C++,他的目標是支援完整的 Python 語言。"

#: ../../faq/design.rst:331
Expand Down Expand Up @@ -596,7 +597,7 @@ msgid ""
"porting problems if your Python code depends on the behavior of the "
"reference counting implementation."
msgstr ""
"然而,在其他實作(像是 `Jython <http://www.jython.org>`_ 或 `PyPy <http://"
"然而,在其他實作(像是 `Jython <https://www.jython.org>`_ 或 `PyPy <https://"
"www.pypy.org>`_)中,會使用像是成熟的垃圾收集器等不同機制。如果你的 Python 程"
"式碼的表現取決於參照計次 (reference counting) 的實作,這個相異處會導致一些微"
"小的移植問題。"
Expand Down