File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1233,24 +1233,32 @@ msgstr ""
1233
1233
1234
1234
#: ../../faq/design.rst:717
1235
1235
msgid "Why are colons required for the if/while/def/class statements?"
1236
- msgstr ""
1236
+ msgstr "為何 if、while、def、class 陳述句裡需要冒號? "
1237
1237
1238
1238
#: ../../faq/design.rst:719
1239
1239
msgid ""
1240
1240
"The colon is required primarily to enhance readability (one of the results "
1241
1241
"of the experimental ABC language). Consider this::"
1242
1242
msgstr ""
1243
+ "需要冒號主要是為了增加可讀性(由 ABC 語言的實驗得知)。試想如下範例:\n"
1244
+ "\n"
1245
+ "::"
1243
1246
1244
1247
#: ../../faq/design.rst:725
1245
1248
msgid "versus ::"
1246
1249
msgstr ""
1250
+ "以及:\n"
1251
+ "\n"
1252
+ "::"
1247
1253
1248
1254
#: ../../faq/design.rst:730
1249
1255
msgid ""
1250
1256
"Notice how the second one is slightly easier to read. Notice further how a "
1251
1257
"colon sets off the example in this FAQ answer; it's a standard usage in "
1252
1258
"English."
1253
1259
msgstr ""
1260
+ "注意第二個例子稍微易讀一些的原因。可以更進一步觀察,一個冒號是如何放在這個 "
1261
+ "FAQ 答案的例子裡的,這是標準的英文用法。"
1254
1262
1255
1263
#: ../../faq/design.rst:733
1256
1264
msgid ""
@@ -1259,6 +1267,8 @@ msgid ""
1259
1267
"needs to be increased instead of having to do a more elaborate parsing of "
1260
1268
"the program text."
1261
1269
msgstr ""
1270
+ "另一個小原因是冒號會使編輯器更容易做語法突顯,他們只需要看冒號的位置就可以決"
1271
+ "定是否需要更多縮排,而不用做更多繁複精密的程式碼解析。"
1262
1272
1263
1273
#: ../../faq/design.rst:739
1264
1274
msgid "Why does Python allow commas at the end of lists and tuples?"
You can’t perform that action at this time.
0 commit comments