File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -824,20 +824,20 @@ msgid ""
824
824
msgstr ""
825
825
"class Dog:\n"
826
826
"\n"
827
- " kind = 'canine' # class variable shared by all instances \n"
827
+ " kind = 'canine' # 所有實例共享的類別變數 \n"
828
828
"\n"
829
829
" def __init__(self, name):\n"
830
- " self.name = name # instance variable unique to each instance \n"
830
+ " self.name = name # 每個實例獨有的實例變數 \n"
831
831
"\n"
832
832
">>> d = Dog('Fido')\n"
833
833
">>> e = Dog('Buddy')\n"
834
- ">>> d.kind # shared by all dogs \n"
834
+ ">>> d.kind # 所有狗共享 \n"
835
835
"'canine'\n"
836
- ">>> e.kind # shared by all dogs \n"
836
+ ">>> e.kind # 所有狗共享 \n"
837
837
"'canine'\n"
838
- ">>> d.name # unique to d \n"
838
+ ">>> d.name # d 獨有 \n"
839
839
"'Fido'\n"
840
- ">>> e.name # unique to e \n"
840
+ ">>> e.name # e 獨有 \n"
841
841
"'Buddy'"
842
842
843
843
#: ../../tutorial/classes.rst:422
@@ -1655,7 +1655,7 @@ msgid ""
1655
1655
" return self.data[self.index]"
1656
1656
msgstr ""
1657
1657
"class Reverse:\n"
1658
- " \"\"\" Iterator for looping over a sequence backwards. \"\"\" \n"
1658
+ " \"\"\" 用於向後迴圈遍歷序列的迭代器。 \"\"\" \n"
1659
1659
" def __init__(self, data):\n"
1660
1660
" self.data = data\n"
1661
1661
" self.index = len(data)\n"
Original file line number Diff line number Diff line change @@ -159,15 +159,15 @@ msgid ""
159
159
" if status == 'active':\n"
160
160
" active_users[user] = status"
161
161
msgstr ""
162
- "# Create a sample collection \n"
162
+ "# 建立一個範例集合 \n"
163
163
"users = {'Hans': 'active', 'Éléonore': 'inactive', '景太郎': 'active'}\n"
164
164
"\n"
165
- "# Strategy: Iterate over a copy \n"
165
+ "# 策略:對副本進行迭代 \n"
166
166
"for user, status in users.copy().items():\n"
167
167
" if status == 'inactive':\n"
168
168
" del users[user]\n"
169
169
"\n"
170
- "# Strategy: Create a new collection \n"
170
+ "# 策略:建立一個新集合 \n"
171
171
"active_users = {}\n"
172
172
"for user, status in users.items():\n"
173
173
" if status == 'active':\n"
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ msgid ""
77
77
"Python interpreter handy for hands-on experience, but all examples are self-"
78
78
"contained, so the tutorial can be read off-line as well."
79
79
msgstr ""
80
- "這份教學將非正式地介紹 Python 語言與系統的基本概念及功能。請注意,它預期你對程式"
80
+ "這份教學將非常規地介紹 Python 語言與系統的基本概念及功能。請注意,它預期你對程式"
81
81
"設計有基本的了解。實際用 Python 直譯器進行實際操作將有助於學習,但所有範例都是"
82
82
"獨立完整的,所以這份教學也可以離線閱讀。"
83
83
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ msgid ""
45
45
"hovering over or tapping a code example), which strips prompts and omits "
46
46
"output, to copy and paste the input lines into your interpreter."
47
47
msgstr ""
48
- "你可以使用\" 複製 \" 按鈕(當游標移至程式碼範例上方或點選程式碼範例時,它會出現在右上角),"
48
+ "你可以使用 \" Copy \" 按鈕(當游標移至程式碼範例上方或點選程式碼範例時,它會出現在右上角),"
49
49
"這會去除提示字元並略過輸出,讓你可以複製貼上輸入行到你的直譯器。"
50
50
51
51
#: ../../tutorial/introduction.rst:22
You can’t perform that action at this time.
0 commit comments