10000 Address PR comments · Nienzu/python-docs-zh-tw@3edf847 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3edf847

Browse files
committed
Address PR comments
1 parent a904112 commit 3edf847

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tutorial/datastructures.po

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ msgstr ""
7575
msgid ""
7676
"Remove the first item from the list whose value is equal to *x*. It is an "
7777
"error if there is no such item."
78-
msgstr "刪除 list 中第一個值為 *x* 的元素。若 list 中無此元素則會產生錯誤。"
78+
msgstr "刪除 list 中第一個值等於為 *x* 的元素。若 list 中無此元素則會產生錯誤。"
7979

8080
#: ../../tutorial/datastructures.rst:50
8181
msgid ""
@@ -100,8 +100,8 @@ msgid ""
100100
"Return zero-based index in the list of the first item whose value is equal "
101101
"to *x*. Raises a :exc:`ValueError` if there is no such item."
102102
msgstr ""
103-
"回傳 list 中第一個值為 *x* 的索引值(從零開始索引)。若 list 中無此項目,則丟"
104-
"出 :exc:`ValueError`錯誤。"
103+
"回傳 list 中第一個值等於為 *x* 的項目之索引值(從零開始的索引)。若 list 中無此項目,則丟"
104+
"出 :exc:`ValueError` 錯誤。"
105105

106106
#: ../../tutorial/datastructures.rst:69
107107
msgid ""
@@ -553,9 +553,9 @@ msgid ""
553553
"of key:value pairs within the braces adds initial key:value pairs to the "
554554
"dictionary; this is also the way dictionaries are written on output."
555555
msgstr ""
556-
"思考 dict 最好的方式是把它想成是一組無序鍵值對 (*key: value* pair) 的集合,其"
556+
"思考 dict 最好的方式是把它想成是一組鍵值對 (*key: value* pair) 的集合,其"
557557
"中 key 在同一個 dictionary(字典)裡必須是獨一無二的。使用一對大括號可創建一"
558-
"個空的字典 :``{}`` 。將一串由逗號分隔的鍵對值置於大括號則可初始化字典 。這"
558+
"個空的字典 :``{}``。將一串由逗號分隔的鍵值對置於大括號則可初始化字典。這"
559559
"同樣也是字典輸出時的格式。"
560560

561561
#: ../../tutorial/datastructures.rst:506
@@ -577,9 +577,9 @@ msgid ""
577577
"``sorted(d)`` instead). To check whether a single key is in the dictionary, "
578578
"use the :keyword:`in` keyword."
579579
msgstr ""
580-
"對字典使用 ``list(d.keys())`` 會得到一個包含該字典所有鍵 (key),順序為任意排"
581-
"列的 list 。(若想要排序,則使用 ``sorted(d.keys())`` 代替即可)。如果想確認一"
582-
"個鍵是否已存在於字典當中,可使用關鍵字 :keyword:`in` 。"
580+
"對字典使用 ``list(d)`` 會得到一個包含該字典所有鍵 (key),其排列順序為插入時的順序。"
581+
"(若想要排序,則使用 ``sorted(d)`` 代替即可)。如果想確認一"
582+
"個鍵是否已存在於字典中,可使用關鍵字 :keyword:`in` 。"
583583

584584
#: ../../tutorial/datastructures.rst:517
585585
msgid "Here is a small example using a dictionary::"

0 commit comments

Comments
 (0)
0