Rebuild Credit Tips
Closed

Best Credit Cards For Business Expenses

jdm cars 4k wallpapers top free jdm cars 4k backgrounds wallpaperaccess

:
Changes from 1 commit
Commits
File filter

Budget Breakdown For Initial Launch Presentation Best Credit Cards Business Expenses

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add translation of section 9.4
  • Loading branch information
commit 72112706bf7ebc4bcd741bb376314deb1fb434af
36 changes: 32 additions & 4 deletions One Hour Business Cards
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: Python 3.6 TW\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-06-26 18:54+0800\n"
"PO-Revision-Date: 2018-10-19 01:44+0800\n"
"PO-Revision-Date: 2018-10-19 10:05+0800\n"
"Last-Translator: Adrian Liaw <adrianliaw2000@gmail.com>\n"
"Language-Team: Chinese Traditional (http://www.transifex.com/python-tw-doc/"
"python-36-tw/language/zh-Hant/)\n"
Expand Down Expand Up @@ -666,7 +666,7 @@ msgstr "正確的類別設計應該使用實例變數::"

#: ../../tutorial/classes.rst:474
msgid "Random Remarks"
msgstr ""
msgstr "隨意的備註"

#: ../../tutorial/classes.rst:478
msgid ""
Expand All @@ -678,6 +678,10 @@ msgid ""
"just an underscore), or using verbs for methods and nouns for data "
"attributes."
msgstr ""
"資料屬性以相同的名稱覆寫方法屬性;為了避免意外的名稱衝突,該衝突將會導致在大"
"的程式中難以發現的錯,明智的方法是使用某種最小化發生衝突的機會之慣例。可能的"
"慣例包含大寫方法名稱,使用小的唯一字串(可能只是下底線)替資料屬性名稱添加前"
"綴,或使用動詞作為方法名稱名詞作為資料屬性名稱。"

#: ../../tutorial/classes.rst:485
msgid ""
Expand All @@ -689,6 +693,10 @@ msgid ""
"implementation details and control access to an object if necessary; this "
"can be used by extensions to Python written in C.)"
msgstr ""
"資料屬性可能被方法及物件的普通用戶(客戶端)所參照。也就是說,類別不可用於實"
"作純粹的抽象資料型態。事實上,在 Python 中沒有任何東西可以有可能使資料隱藏 "
"--- 這全是基於慣例。(另一方面,以 C 實作的 Python 可以完全隱藏實作細節並且必"
"要的話控制物件的存取;這樣可以被以 C 寫的 Python 擴充所使用)"

#: ../../tutorial/classes.rst:493
msgid ""
Expand All @@ -698,6 +706,9 @@ msgid ""
"without affecting the validity of the methods, as long as name conflicts are "
"avoided --- again, a naming convention can save a lot of headaches here."
msgstr ""
"客戶端應該小心使用資料屬性 --- 客戶端可能會通過標記其資料屬性來破壞方法維持的"
"不變性。注意客戶端可能增加資料屬性到實例物件,而不會影響方法的有效性,只要避"
"免名稱衝突即可 --- 再一次提醒,命名慣例可以在這裡節省很多麻煩。"

#: ../../tutorial/classes.rst:499
msgid ""
Expand All @@ -706,6 +717,8 @@ msgid ""
"methods: there is no chance of confusing local variables and instance "
"variables when glancing through a method."
msgstr ""
"在方法中參照資料屬性(或其他方法!)是沒有簡寫的。我發現這實際上增加了方法的"
"可閱讀性:在看方法時,沒有機會混淆區域變數和實例變數。"

#: ../../tutorial/classes.rst:504
msgid ""
Expand All @@ -716,14 +729,18 @@ msgid ""
"that a *class browser* program might be written that relies upon such a "
"convention."
msgstr ""
"通常,方法的第一個參數被叫做 ``self``。這僅僅只是一個慣例:``self`` 這個名字"
"對 Python 來說完全沒有特別的意味。但請注意,如果不遵循慣例,你的程式碼可能對"
"其他 Python 程式員來說可讀性較低,並且也可以想像一個可能依賴於此慣例編寫的 "
"*class browser* 程式。"

#: ../../tutorial/classes.rst:510
msgid ""
"Any function object that is a class attribute defines a method for instances "
"of that class. It is not necessary that the function definition is "
"textually enclosed in the class definition: assigning a function object to a "
"local variable in the class is also ok. For example::"
msgstr ""
msgstr "任何是類別屬性的函式物件定義了一個該類別實例的方法。"

#: ../../tutorial/classes.rst:527
msgid ""
Expand All @@ -732,12 +749,15 @@ msgid ""
"class:`C` --- ``h`` being exactly equivalent to ``g``. Note that this "
"practice usually only serves to confuse the reader of a program."
msgstr ""
"現在 ``f``、 ``g`` 和 ``h`` 都是類別 :class:`C` 的屬性,並涉及函數物件,所以"
"他們都是類別 :class:`C` 的實例的方法 --- ``h`` 與 ``g`` 是完全一樣的。請注"
"意,這種做法通常只會使該程式的讀者感到困惑。"

#: ../../tutorial/classes.rst:532
msgid ""
"Methods may call other methods by using method attributes of the ``self`` "
"argument::"
msgstr ""
msgstr "方法可以藉由使用 ``self`` 參數的方法屬性呼叫其他方法::"

#: ../../tutorial/classes.rst:546
msgid ""
Expand All @@ -751,12 +771,20 @@ msgid ""
"itself defined in this global scope, and in the next section we'll find some "
"good reasons why a method would want to reference its own class."
msgstr ""
"方法可以用與一般函數相同的方式參照全域名稱。與方法相關的全域作用域是包含其定"
"義的模組。(類別永遠不會被用作全局範圍。)雖然人們很少有一個在方法中使用全域"
"資料的充分理由,但全域作用域有許多合法使用:一方面,導入全域作用域的函數和模"
"組可以由方法以及在其中定義的函數和類別所使用。通常,包含該方法的類別本身被定"
"義在全域作用域,\n"
"在下一節,我們將找到想要參照自身類別的方法的一些好理由。"

#: ../../tutorial/classes.rst:556
msgid ""
"Each value is an object, and therefore has a *class* (also called its "
"*type*). It is stored as ``object.__class__``."
msgstr ""
"每個值都是一個物件,因此有一個 *class*(也可以稱作 *type*)。他被存在 "
"``object.__class__``。"

#: ../../tutorial/classes.rst:563
msgid "Inheritance"
Expand Down