Skip to content

Commit c9ce39d

Browse files
an-777ken71301
andcommitted
Apply suggestions from code review
Co-authored-by: Payon <[email protected]>
1 parent debf960 commit c9ce39d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

faq/programming.po

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ msgid ""
13021302
"identity to hold, and then compilers that truncate ``i // j`` need to make "
13031303
"``i % j`` have the same sign as ``i``."
13041304
msgstr ""
1305-
"那麼整數除法必須回傳底數。 C 還要求保留​​該識別性,然後截斷 ``i // j`` 的編譯器需"
1305+
"那麼整數除法必須回傳向下取整的結果。 C 還要求保留​​該識別性,然後截斷 ``i // j`` 的編譯器需"
13061306
"要使 ``i % j`` 具有與 ``i`` 相同的符號。"
13071307

13081308
#: ../../faq/programming.rst:840
@@ -2837,7 +2837,7 @@ msgid ""
28372837
"object identity is assured. Generally, there are three circumstances where "
28382838
"identity is guaranteed:"
28392839
msgstr ""
2840-
"然而,當物件識別性得到保證時,識別性測試\\ *只能*\\ 代替相等性測試。一般來說,保"
2840+
"然而,\\* 只有\\* 當物件識別性得到保證時,識別性測試才能代替相等性測試。一般來說,保"
28412841
"證識別性的情況有以下三種:"
28422842

28432843
#: ../../faq/programming.rst:1843
@@ -2853,7 +2853,7 @@ msgid ""
28532853
"change object identity. After the list assignment ``s[0] = x``, it is "
28542854
"guaranteed that ``s[0] is x``."
28552855
msgstr ""
2856-
"2) 將物件放入存儲物件引用的容器中不會改變物件識別性。在list賦值 ``s[0] = x`` 之"
2856+
"2) 將物件放入存儲物件參照的容器中不會改變物件識別性。在 list 賦值 ``s[0] = x`` 之"
28572857
"後,保證 ``s[0] 是 x``。"
28582858

28592859
#: ../../faq/programming.rst:1850
@@ -2874,7 +2874,7 @@ msgid ""
28742874
"guaranteed to be singletons::"
28752875
msgstr ""
28762876
"在大多數其他情況下,識別性測試是不可取的,相等性測試是首選。特別是,識別性測試不應"
2877-
"用於檢查常數,例如 :class:`int` 和 :class:`str` 不能保證是單例:\n"
2877+
"用於檢查常數,例如不能保證是單例的 :class:`int` 和 :class:`str`:\n"
28782878
"\n"
28792879
"::"
28802880

@@ -3391,7 +3391,7 @@ msgid ""
33913391
"The nature of the problem is made clear if you print out the \"identity\" of "
33923392
"the class objects::"
33933393
msgstr ""
3394-
"如果印出出類別物件的「識別性」,問題的本質就很清楚了:\n"
3394+
"如果印出類別物件的「識別性」,問題的本質就很清楚了:\n"
33953395
"\n"
33963396
"::"
33973397

0 commit comments

Comments
 (0)