@@ -192,7 +192,7 @@ msgid ""
192
192
"tuples and lists."
193
193
msgstr ""
194
194
"其一是效能:知道字串不可變動後,我們就可以在創造他的時候就分配好空間,而後他"
195
- "的儲存空間需求就是固定不變的。這也是值組 (tuples ) 和串列 (lists ) 相異的其中一"
195
+ "的儲存空間需求就是固定不變的。這也是元組 (tuple ) 和串列 (list ) 相異的其中一"
196
196
"個原因。"
197
197
198
198
#: ../../faq/design.rst:104
@@ -347,7 +347,7 @@ msgstr ""
347
347
348
348
#: ../../faq/design.rst:193
349
349
msgid "Why is join() a string method instead of a list or tuple method?"
350
- msgstr "為何 join() 是字串方法而非串列 (list) 或值組 (tuple) 方法?"
350
+ msgstr "為何 join() 是字串方法而非串列 (list) 或元組 (tuple) 方法?"
351
351
352
352
#: ../../faq/design.rst:195
353
353
msgid ""
@@ -607,7 +607,7 @@ msgid ""
607
607
"CPython) will probably run out of file descriptors::"
608
608
msgstr ""
609
609
"在一些 Python 實作中,下面這段程式碼(在 CPython 可以正常運作)可能會把檔案描"
610
- "述子 (file descriptors ) 用盡:\n"
610
+ "述子 (file descriptor ) 用盡:\n"
611
611
"\n"
612
612
"::"
613
613
@@ -693,7 +693,7 @@ msgstr ""
693
693
694
694
#: ../../faq/design.rst:400
695
695
msgid "Why are there separate tuple and list data types?"
696
- msgstr "為何要把值組 (tuple) 和串列 (list) 分成兩個資料型態?"
696
+ msgstr "為何要把元組 (tuple) 和串列 (list) 分成兩個資料型態?"
697
697
698
698
#: ../../faq/design.rst:402
699
699
msgid ""
@@ -704,10 +704,10 @@ msgid ""
704
704
"Cartesian coordinate is appropriately represented as a tuple of two or three "
705
705
"numbers."
706
706
msgstr ""
707
- "串列和值組在很多方面相當相似 ,但通常用在完全不同的地方。值組可以想成 Pascal "
708
- "的紀錄 (records ) 或是 C 的結構 (structs ),是一小群相關聯但可能是不同型別的資"
707
+ "串列和元組在很多方面相當相似 ,但通常用在完全不同的地方。元組可以想成 Pascal "
708
+ "的紀錄 (record ) 或是 C 的結構 (struct ),是一小群相關聯但可能是不同型別的資"
709
709
"料集合,以一組為單位進行操作。舉例來說,一個笛卡兒坐標系可以適當地表示成一個"
710
- "有二或三個值的值組 。"
710
+ "有二或三個值的元組 。"
711
711
712
712
#: ../../faq/design.rst:409
713
713
msgid ""
@@ -730,13 +730,13 @@ msgid ""
730
730
"be used as dictionary keys, and hence only tuples and not lists can be used "
731
731
"as keys."
732
732
msgstr ""
733
- "值組則是不可變的,代表一旦值組被建立 ,你就不能夠改變裡面的任何一個值。而串列"
733
+ "元組則是不可變的,代表一旦元組被建立 ,你就不能夠改變裡面的任何一個值。而串列"
734
734
"可變,所以你可以改變裡面的元素。只有不可變的元素可以成為字典的鍵,所以只能把"
735
- "值組當成鍵 ,而串列則不行。"
735
+ "元組當成鍵 ,而串列則不行。"
736
736
737
737
#: ../../faq/design.rst:423
738
738
msgid "How are lists implemented in CPython?"
739
- msgstr "串列 (lists ) 在 CPython 中是怎麼實作的?"
739
+ msgstr "串列 (list ) 在 CPython 中是怎麼實作的?"
740
740
741
741
#: ../../faq/design.rst:425
742
742
msgid ""
@@ -745,8 +745,8 @@ msgid ""
745
745
"objects, and keeps a pointer to this array and the array's length in a list "
746
746
"head structure."
747
747
msgstr ""
748
- "CPython 的串列 (lists ) 事實上是可變長度的陣列 (array),而不是像 Lisp 語言的鏈"
749
- "接串列 (linked lists )。實作上,他是一個連續的物件參照 (references ) 陣列,並把"
748
+ "CPython 的串列 (list ) 事實上是可變長度的陣列 (array),而不是像 Lisp 語言的鏈"
749
+ "接串列 (linked list )。實作上,他是一個連續的物件參照 (reference ) 陣列,並把"
750
750
"指向此陣列的指標 (pointer) 和陣列長度存在串列的標頭結構內。"
751
751
752
752
#: ../../faq/design.rst:429
@@ -777,8 +777,8 @@ msgid ""
777
777
"operation by far) under most circumstances, and the implementation is "
778
778
"simpler."
779
779
msgstr ""
780
- "CPython 的字典是用可調整大小的雜湊表 (hash tables ) 實作的。比起 B 樹 (B-"
781
- "trees ),在搜尋(目前為止最常見的操作)方面有更好的表現,實作上也較為簡單。"
780
+ "CPython 的字典是用可調整大小的雜湊表 (hash table ) 實作的。比起 B 樹 (B-"
781
+ "tree ),在搜尋(目前為止最常見的操作)方面有更好的表現,實作上也較為簡單。"
782
782
783
783
#: ../../faq/design.rst:445
784
784
msgid ""
@@ -827,8 +827,8 @@ msgid ""
827
827
"as the list ``L``. Tuples are immutable and can therefore be used as "
828
828
"dictionary keys."
829
829
msgstr ""
830
- "如果你想要用串列作為字典的索引,把他轉換成值組即可 。``tuple(L)`` 函式會建立一"
831
- "個和串列 ``L`` 一樣內容的值組。而值組是不可變的 ,所以可以用來當成字典的鍵。"
830
+ "如果你想要用串列作為字典的索引,把他轉換成元組即可 。``tuple(L)`` 函式會建立一"
831
+ "個和串列 ``L`` 一樣內容的元組。而元組是不可變的 ,所以可以用來當成字典的鍵。"
832
832
833
833
#: ../../faq/design.rst:471
834
834
msgid "Some unacceptable solutions that have been proposed:"
@@ -884,7 +884,7 @@ msgid ""
884
884
"loop."
885
885
msgstr ""
886
886
"一旦串列被當成鍵,把他標記成只能讀取。問題是,這不只要避免最上層的物件改變"
887
- "值,就像用值組包含串列來做為鍵 。把一個物件當成鍵,需要將從他開始可以接觸到的"
887
+ "值,就像用元組包含串列來做為鍵 。把一個物件當成鍵,需要將從他開始可以接觸到的"
888
888
"所有物件都標記成只能讀取 — 所以再一次,自己參照自己的物件會導致無窮迴圈。"
889
889
890
890
#: ../../faq/design.rst:498
@@ -990,7 +990,7 @@ msgid ""
990
990
"`~collections.abc.MutableMapping`."
991
991
msgstr ""
992
992
"Python 2.6 加入了 :mod:`abc` 模組,讓你可以定義抽象基底類別 (Abstract Base "
993
- "Classes, ABCs )。你可以使用 :func:`isinstance` 和 :func:`issubclass` 來確認一"
993
+ "Class, ABC )。你可以使用 :func:`isinstance` 和 :func:`issubclass` 來確認一"
994
994
"個實例或是類別是否實作了某個抽象基底類別。而 :mod:`collections."
995
995
"abc` 模組定義了一系列好用的抽象基底類別,像是 :class:`~collections.abc."
996
996
"Iterable`、:class:`~collections.abc.Container` 和 :class:`~collections.abc."
@@ -1220,7 +1220,7 @@ msgstr ""
1220
1220
1221
1221
#: ../../faq/design.rst:708
1222
1222
msgid "Why don't generators support the with statement?"
1223
- msgstr "為何產生器 (generators ) 不支援 with 陳述式?"
1223
+ msgstr "為何產生器 (generator ) 不支援 with 陳述式?"
1224
1224
1225
1225
#: ../../faq/design.rst:710
1226
1226
msgid ""
@@ -1274,14 +1274,14 @@ msgstr ""
1274
1274
1275
1275
#: ../../faq/design.rst:739
1276
1276
msgid "Why does Python allow commas at the end of lists and tuples?"
1277
- msgstr "為何 Python 允許在串列和值組末端加上逗號 ?"
1277
+ msgstr "為何 Python 允許在串列和元組末端加上逗號 ?"
1278
1278
1279
1279
#: ../../faq/design.rst:741
1280
1280
msgid ""
1281
1281
"Python lets you add a trailing comma at the end of lists, tuples, and "
1282
1282
"dictionaries::"
1283
1283
msgstr ""
1284
- "Python 允許你在串列、值組和字典的結尾加上逗號 :\n"
1284
+ "Python 允許你在串列、元組和字典的結尾加上逗號 :\n"
1285
1285
"\n"
1286
1286
"::"
1287
1287
@@ -1296,7 +1296,7 @@ msgid ""
1296
1296
"remember to add a comma to the previous line. The lines can also be "
1297
1297
"reordered without creating a syntax error."
1298
1298
msgstr ""
1299
- "當你要把串列、值組或字典的值寫成多行時 ,這樣做會讓你新增元素時較為方便,因為"
1299
+ "當你要把串列、元組或字典的值寫成多行時 ,這樣做會讓你新增元素時較為方便,因為"
1300
1300
"你不需要在前一行加上逗號。這幾行的值也可以被重新排序,而不會導致語法錯誤。"
1301
1301
1302
1302
#: ../../faq/design.rst:759
0 commit comments