8000 Translate faq/design.html#how-are-lists-implemented-in-cpython · python/python-docs-zh-tw@04dde0a · GitHub
[go: up one dir, main page]

Skip to content

Commit 04dde0a

Browse files
committed
Translate faq/design.html#how-are-lists-implemented-in-cpython
1 parent a699463 commit 04dde0a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

faq/design.po

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: Python 3.10\n"
1010
"Report-Msgid-Bugs-To: \n"
1111
"POT-Creation-Date: 2022-07-06 00:17+0000\n"
12-
"PO-Revision-Date: 2022-08-19 21:55+0800\n"
12+
"PO-Revision-Date: 2022-08-22 22:22+0800\n"
1313
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
1414
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1515
"tw)\n"
@@ -745,12 +745,15 @@ msgid ""
745745
"objects, and keeps a pointer to this array and the array's length in a list "
746746
"head structure."
747747
msgstr ""
748+
"CPython 的串列 (lists) 事實上是可變長度的陣列 (array),而不是像 Lisp 語言的鏈"
749+
"接串列 (linked lists)。實作上,他是一個連續的物件參照 (references) 陣列,並把"
750+
"指向此陣列的指標 (pointer) 和陣列長度存在串列的標頭結構內。"
748751

749752
#: ../../faq/design.rst:429
750753
msgid ""
751754
"This makes indexing a list ``a[i]`` an operation whose cost is independent "
752755
"of the size of the list or the value of the index."
753-
msgstr ""
756+
msgstr "因此,用索引來找串列特定項 ``a[i]`` 的代價和串列大小或是索引值無關。"
754757

755758
#: ../../faq/design.rst:432
756759
msgid ""
@@ -759,6 +762,9 @@ msgid ""
759762
"repeatedly; when the array must be grown, some extra space is allocated so "
760763
"the next few times don't require an actual resize."
761764
msgstr ""
765+
"當新物件被新增或插入時,陣列會被調整大小。為了改善多次加入物件的效率,我們有"
766+
"用一些巧妙的方法,當陣列必須變大時,會多收集一些額外的空間,接下來幾次新增時"
767+
"就不需要再調整大小了。"
762768

763769
#: ../../faq/design.rst:439
764770
msgid "How are dictionaries implemented in CPython?"

0 commit comments

Comments
 (0)
0