@@ -75,7 +75,7 @@ msgstr ""
75
75
msgid ""
76
76
"Remove the first item from the list whose value is equal to *x*. It is an "
77
77
"error if there is no such item."
78
- msgstr "刪除 list 中第一個值為 *x* 的元素。若 list 中無此元素則會產生錯誤。"
78
+ msgstr "刪除 list 中第一個值等於為 *x* 的元素。若 list 中無此元素則會產生錯誤。"
79
79
80
80
#: ../../tutorial/datastructures.rst:50
81
81
msgid ""
@@ -100,8 +100,8 @@ msgid ""
100
100
"Return zero-based index in the list of the first item whose value is equal "
101
101
"to *x*. Raises a :exc:`ValueError` if there is no such item."
102
102
msgstr ""
103
- "回傳 list 中第一個值為 *x* 的索引值(從零開始索引 )。若 list 中無此項目,則丟"
104
- "出 :exc:`ValueError`錯誤。"
103
+ "回傳 list 中第一個值等於為 *x* 的項目之索引值(從零開始的索引 )。若 list 中無此項目,則丟"
104
+ "出 :exc:`ValueError` 錯誤。"
105
105
106
106
#: ../../tutorial/datastructures.rst:69
107
107
msgid ""
@@ -553,9 +553,9 @@ msgid ""
553
553
"of key:value pairs within the braces adds initial key:value pairs to the "
554
554
"dictionary; this is also the way dictionaries are written on output."
555
555
msgstr ""
556
- "思考 dict 最好的方式是把它想成是一組無序鍵值對 (*key: value* pair) 的集合,其"
556
+ "思考 dict 最好的方式是把它想成是一組鍵值對 (*key: value* pair) 的集合,其"
557
557
"中 key 在同一個 dictionary(字典)裡必須是獨一無二的。使用一對大括號可創建一"
558
- "個空的字典 :``{}`` 。將一串由逗號分隔的鍵對值置於大括號則可初始化字典 。這"
558
+ "個空的字典 :``{}``。將一串由逗號分隔的鍵值對置於大括號則可初始化字典 。這"
559
559
"同樣也是字典輸出時的格式。"
560
560
561
561
#: ../../tutorial/datastructures.rst:506
@@ -577,9 +577,9 @@ msgid ""
577
577
"``sorted(d)`` instead). To check whether a single key is in the dictionary, "
578
578
"use the :keyword:`in` keyword."
579
579
msgstr ""
580
- "對字典使用 ``list(d.keys()) `` 會得到一個包含該字典所有鍵 (key),順序為任意排 "
581
- "列的 list 。 (若想要排序,則使用 ``sorted(d.keys() )`` 代替即可)。如果想確認一"
582
- "個鍵是否已存在於字典當中 ,可使用關鍵字 :keyword:`in` 。"
580
+ "對字典使用 ``list(d) `` 會得到一個包含該字典所有鍵 (key),其排列順序為插入時的順序。 "
581
+ "(若想要排序,則使用 ``sorted(d)`` 代替即可)。如果想確認一"
582
+ "個鍵是否已存在於字典中 ,可使用關鍵字 :keyword:`in` 。"
583
583
584
584
#: ../../tutorial/datastructures.rst:517
585
585
msgid "Here is a small example using a dictionary::"
0 commit comments