Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29cb707

Browse files
Apply suggestions from code review
Apply a part of suggestions. Working on the rest part.Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
1 parent4d5c328 commit29cb707

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

‎glossary.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ msgid ""
158158
"following calls to :func:`complex`::"
159159
msgstr""
160160
":dfn:`關鍵字引數 (keyword argument)`\\ :在函式呼叫中,以識別字(identifier,"
161-
"例如 ``name=``\\ )開頭的引數,或是以 ``**`` 後面 dictionary(字典)內的值被"
161+
"例如 ``name=``\\ )開頭的引數,或是以 ``**`` 後面 dictionary(字典)內的值被"
162162
"傳遞的引數。例如,``3`` 和 ``5`` 都是以下 :func:`complex` 呼叫中的關鍵字引"
163163
"數:\n"
164164
"\n"
@@ -668,7 +668,7 @@ msgstr ""
668668
"任何定義了 :meth:`__get__`\\\\ :meth:`__set__` 或 :meth:`__delete__` "
669669
"method(方法)的物件。當一個 class(類別)屬性是一個描述器時,它的特殊連結行"
670670
"為會在屬性查找時被觸發。通常,使用 *a.b* 來取得、設定或刪除某個屬性時,會在 "
671-
"*a* 的 class 字典中查找名稱為 *b* 的物件,但如果 *b* 是一個描述器,則相對應"
671+
"*a* 的 class 字典中查找名稱為 *b* 的物件,但如果 *b* 是一個描述器,則相對應"
672672
"的描述器 method 會被呼叫。對描述器的理解是深入理解 Python 的關鍵,因為它們是"
673673
"許多功能的基礎,這些功能包括函式、method、屬性 (property)、class method、靜"
674674
"態 method,以及對 super class(父類別)的參照。"
@@ -1506,8 +1506,8 @@ msgid ""
15061506
"thread removes *key* from *mapping* after the test, but before the lookup. "
15071507
"This issue can be solved with locks or by using the EAFP approach."
15081508
msgstr""
1509-
"在一個多執行緒環境中,LBYL方式會因為在「三思」和「後行」之間引入了競爭條件 "
1510-
"(race condition),而存在風險。例如以下程式碼 ``if key in mapping: return "
1509+
"在一個多執行緒環境中,LBYL方式有在「三思」和「後行」之間引入了競爭條件 "
1510+
"(race condition) 的風險。例如以下程式碼 ``if key in mapping: return "
15111511
"mapping[key]``,如果另一個執行緒在測試之後但在查找之前,從 *mapping* 中移除"
15121512
"了 *key*,則該程式碼就會失效。這個問題可以用鎖 (lock) 或使用 EAFP 編碼方式來"
15131513
"解決。"
@@ -1538,8 +1538,8 @@ msgid ""
15381538
"numbers (0x..) in the range from 0 to 255. The :keyword:`if` clause is "
15391539
"optional. If omitted, all elements in ``range(256)`` are processed."
15401540
msgstr""
1541-
"一種緊密的方法,用來處理一個序列中的全部或部分元素,並將處理結果以一個 list "
1542-
"回傳。``result = ['{:#04x}'.format(x) for x in range(256) if x % 2 == 0]`` 會"
1541+
"一種用來處理一個序列中的全部或部分元素,並將處理結果以一個 list回傳的簡要"
1542+
"方法。``result = ['{:#04x}'.format(x) for x in range(256) if x % 2 == 0]`` 會"
15431543
"產生一個字串 list,其中包含 0 到 255 範圍內,所有偶數的十六進位數 "
15441544
"(0x..)。\\ :keyword:`if` 子句是選擇性的。如果省略它,則 ``range(256)`` 中的所"
15451545
"有元素都會被處理。"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp