Skip to content

Commit d99bb69

Browse files
authored
fix tutorial error (#1247)
1 parent 9b577d2 commit d99bb69

6 files changed

Lines changed: 12 additions & 11 deletions

File tree

‎tutorial/appendix.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ msgid ""
200200
"script::"
201201
msgstr ""
202202
"如果你想從目前目錄中讀取一個額外的啟動檔案,你可以在全域啟動檔案中使用類似 "
203-
"``if os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read()`` 的程"
203+
"``if os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())`` 的程"
204204
"式碼設定這個行為。如果你想在一個腳本中使用啟動檔案,你必須在腳本中明確地這樣"
205205
"做: ::"
206206

‎tutorial/datastructures.po‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ msgid ""
509509
"The initial expression in a list comprehension can be any arbitrary "
510510
"expression, including another list comprehension."
511511
msgstr ""
512-
"在 list comprehesion 中開頭的 expression 可以是任何形式的 expression,包括再"
512+
"在 list comprehension 中開頭的 expression 可以是任何形式的 expression,包括再"
513513
"寫一個 list comprehension。"
514514

515515
#: ../../tutorial/datastructures.rst:290
@@ -534,7 +534,7 @@ msgstr ""
534534

535535
#: ../../tutorial/datastructures.rst:299
536536
msgid "The following list comprehension will transpose rows and columns::"
537-
msgstr "以下的 list comprehesion 會將矩陣的行與列作轉置: ::"
537+
msgstr "以下的 list comprehension 會將矩陣的行與列作轉置: ::"
538538

539539
#: ../../tutorial/datastructures.rst:301
540540
msgid ""

‎tutorial/inputoutput.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ msgid ""
419419
"This could also be done by passing the ``table`` dictionary as keyword "
420420
"arguments with the ``**`` notation. ::"
421421
msgstr ""
422-
"用 '**' 符號,把 ``table`` 字典當作關鍵字引數來傳遞,也有一樣的結果。 ::"
422+
"用 ``**`` 符號,把 ``table`` 字典當作關鍵字引數來傳遞,也有一樣的結果。 ::"
423423

424424
#: ../../tutorial/inputoutput.rst:210
425425
msgid ""

‎tutorial/interpreter.po‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ msgid ""
9090
"the current line."
9191
msgstr ""
9292
"直譯器的命令列編輯功能有很多,在大多數系統上包含:互動編輯、歷史取代、命令"
93-
"補完等功能。最快檢查有無支援命令列編輯的方法為:在第一個 Python 提示字元後輸"
94-
"入 :kbd:`Control-P`,如果出現嗶嗶聲,就代表有支援;見附錄\\ :ref:`tut-"
95-
"interacting`\\ 介紹相關的快速鍵。如果什麼事都沒有發生,或者出現一個 ``^P``,"
96-
"就代表並沒有命令列編輯功能;此時只能使用 backspace 去除該行的字元。"
93+
"補完等功能。最快檢查是否支援命令列編輯的方法是:在 Python 提示字元後輸入"
94+
"一個單字,然後按左方向鍵(或 :kbd:`Control-b`\\ )。如果游標有移動,就"
95+
"代表有命令列編輯功能;見附錄\\ :ref:`tut-interacting`\\ 介紹相關的按鍵。"
96+
"如果什麼事都沒有發生,或者出現類似 ``^[[D`` 或 ``^B`` 的序列,就代表並"
97+
"沒有命令列編輯功能;此時只能使用 backspace 去除目前這一行的字元。"
9798

9899
#: ../../tutorial/interpreter.rst:46
99100
msgid ""

‎tutorial/modules.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ msgid ""
11631163
msgstr ""
11641164
"你也可以用 ``from module import name`` 的 import 陳述式,編寫「相對 "
11651165
"(relative) import」。這些 import 使用前導句號指示相對 import 中的目前套件和母"
1166-
"套件。例如,在 :mod:`!urround` 模組中,你可以使用: ::"
1166+
"套件。例如,在 :mod:`!surround` 模組中,你可以使用: ::"
11671167

11681168
#: ../../tutorial/modules.rst:578
11691169
msgid ""

‎tutorial/stdlib.po‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ msgid ""
423423
"for output formatting and manipulation. The module also supports objects "
424424
"that are timezone aware. ::"
425425
msgstr ""
426-
":mod:`datetime` 模組提供許多 class 可以操作日期以及時間,從簡單從複雜都有。模"
426+
":mod:`datetime` 模組提供許多 class 可以操作日期以及時間,從簡單到複雜都有。模"
427427
"組支援日期與時間的運算,而實作的重點是有效率的成員擷取以達到輸出格式化以及操"
428-
"作。模組也提供支援時區換算的類別。 ::"
428+
"作。模組也提供支援帶有時區資訊的類別。 ::"
429429

430430
#: ../../tutorial/stdlib.rst:218
431431
msgid ""

0 commit comments

Comments
 (0)