Skip to content

Commit 6dc3a89

Browse files
mattwang44josix
andauthored
Apply suggestions from code review
Co-authored-by: Josix <wilson8507@gmail.com>
1 parent b889b7e commit 6dc3a89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/collections.po

+2-2
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ msgid ""
919919
"to provide a default value for the given *key*, this value is inserted in "
920920
"the dictionary for the *key*, and returned."
921921
msgstr ""
922-
"如果 :attr:`default_factory` 不為 ``None``,它會被呼叫(不帶引數)來為給定的 "
922+
"如果 :attr:`default_factory` 不為 ``None``,它會不帶引數地被呼叫來為給定的 "
923923
"*key* 提供一個預設值,這個值和 *key* 被作為鍵值對來插入到字典中,並且被此方法"
924924
"所回傳。"
925925

@@ -995,7 +995,7 @@ msgstr ""
995995
"當每個鍵第一次被存取時,它還沒有存在於對映中,所以會自動呼叫 :attr:"
996996
"`~defaultdict.default_factory` 方法來回傳一個空的 :class:`list` 以建立一個條"
997997
"目,\\ :meth:`list.append` 操作後續會再新增值到這個新的列表裡。當再次存取該鍵"
998-
"時,就如普通字典般操作(回傳該鍵所指到的 list),\\ :meth:`list.append` 也會"
998+
"時,就如普通字典般操作(回傳該鍵所對應到的 list),\\ :meth:`list.append` 也會"
999999
"新增另一個值到 list 中。和使用與其等價的 :meth:`dict.setdefault` 相比,這個技"
10001000
"巧更加快速和簡單:"
10011001

0 commit comments

Comments
 (0)