Skip to content

Commit 19dfed6

Browse files
committed
Translate faq/design.html#why-are-colons-required-for-the-if-while-def-class-statements
1 parent 9448b4e commit 19dfed6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

faq/design.po

+11-1
Original file line numberDiff line numberDiff line change
@@ -1233,24 +1233,32 @@ msgstr ""
12331233

12341234
#: ../../faq/design.rst:717
12351235
msgid "Why are colons required for the if/while/def/class statements?"
1236-
msgstr ""
1236+
msgstr "為何 if、while、def、class 陳述句裡需要冒號?"
12371237

12381238
#: ../../faq/design.rst:719
12391239
msgid ""
12401240
"The colon is required primarily to enhance readability (one of the results "
12411241
"of the experimental ABC language). Consider this::"
12421242
msgstr ""
1243+
"需要冒號主要是為了增加可讀性(由 ABC 語言的實驗得知)。試想如下範例:\n"
1244+
"\n"
1245+
"::"
12431246

12441247
#: ../../faq/design.rst:725
12451248
msgid "versus ::"
12461249
msgstr ""
1250+
"以及:\n"
1251+
"\n"
1252+
"::"
12471253

12481254
#: ../../faq/design.rst:730
12491255
msgid ""
12501256
"Notice how the second one is slightly easier to read. Notice further how a "
12511257
"colon sets off the example in this FAQ answer; it's a standard usage in "
12521258
"English."
12531259
msgstr ""
1260+
"注意第二個例子稍微易讀一些的原因。可以更進一步觀察,一個冒號是如何放在這個 "
1261+
"FAQ 答案的例子裡的,這是標準的英文用法。"
12541262

12551263
#: ../../faq/design.rst:733
12561264
msgid ""
@@ -1259,6 +1267,8 @@ msgid ""
12591267
"needs to be increased instead of having to do a more elaborate parsing of "
12601268
"the program text."
12611269
msgstr ""
1270+
"另一個小原因是冒號會使編輯器更容易做語法突顯,他們只需要看冒號的位置就可以決"
1271+
"定是否需要更多縮排,而不用做更多繁複精密的程式碼解析。"
12621272

12631273
#: ../../faq/design.rst:739
12641274
msgid "Why does Python allow commas at the end of lists and tuples?"

0 commit comments

Comments
 (0)