From 190c426655c4a0354765cb3f43aa838dc742f3bb Mon Sep 17 00:00:00 2001 From: BIT074 Date: Sat, 10 Oct 2026 16:53:08 +0800 Subject: [PATCH] fix tutorial error --- tutorial/appendix.po | 2 +- tutorial/datastructures.po | 4 ++-- tutorial/inputoutput.po | 2 +- tutorial/interpreter.po | 9 +++++---- tutorial/modules.po | 2 +- tutorial/stdlib.po | 4 ++-- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/tutorial/appendix.po b/tutorial/appendix.po index 98f7aacff9e..ed8af65e7c0 100644 --- a/tutorial/appendix.po +++ b/tutorial/appendix.po @@ -200,7 +200,7 @@ msgid "" "script::" msgstr "" "如果你想從目前目錄中讀取一個額外的啟動檔案,你可以在全域啟動檔案中使用類似 " -"``if os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read()`` 的程" +"``if os.path.isfile('.pythonrc.py'): exec(open('.pythonrc.py').read())`` 的程" "式碼設定這個行為。如果你想在一個腳本中使用啟動檔案,你必須在腳本中明確地這樣" "做: ::" diff --git a/tutorial/datastructures.po b/tutorial/datastructures.po index 6a088ce85f4..fb047ac662b 100644 --- a/tutorial/datastructures.po +++ b/tutorial/datastructures.po @@ -509,7 +509,7 @@ msgid "" "The initial expression in a list comprehension can be any arbitrary " "expression, including another list comprehension." msgstr "" -"在 list comprehesion 中開頭的 expression 可以是任何形式的 expression,包括再" +"在 list comprehension 中開頭的 expression 可以是任何形式的 expression,包括再" "寫一個 list comprehension。" #: ../../tutorial/datastructures.rst:290 @@ -534,7 +534,7 @@ msgstr "" #: ../../tutorial/datastructures.rst:299 msgid "The following list comprehension will transpose rows and columns::" -msgstr "以下的 list comprehesion 會將矩陣的行與列作轉置: ::" +msgstr "以下的 list comprehension 會將矩陣的行與列作轉置: ::" #: ../../tutorial/datastructures.rst:301 msgid "" diff --git a/tutorial/inputoutput.po b/tutorial/inputoutput.po index 578867becb9..3f0860ad572 100644 --- a/tutorial/inputoutput.po +++ b/tutorial/inputoutput.po @@ -419,7 +419,7 @@ msgid "" "This could also be done by passing the ``table`` dictionary as keyword " "arguments with the ``**`` notation. ::" msgstr "" -"用 '**' 符號,把 ``table`` 字典當作關鍵字引數來傳遞,也有一樣的結果。 ::" +"用 ``**`` 符號,把 ``table`` 字典當作關鍵字引數來傳遞,也有一樣的結果。 ::" #: ../../tutorial/inputoutput.rst:210 msgid "" diff --git a/tutorial/interpreter.po b/tutorial/interpreter.po index 8b9d54c1c58..7258defc0c3 100644 --- a/tutorial/interpreter.po +++ b/tutorial/interpreter.po @@ -90,10 +90,11 @@ msgid "" "the current line." msgstr "" "直譯器的命令列編輯功能有很多,在大多數系統上包含:互動編輯、歷史取代、命令" -"補完等功能。最快檢查有無支援命令列編輯的方法為:在第一個 Python 提示字元後輸" -"入 :kbd:`Control-P`,如果出現嗶嗶聲,就代表有支援;見附錄\\ :ref:`tut-" -"interacting`\\ 介紹相關的快速鍵。如果什麼事都沒有發生,或者出現一個 ``^P``," -"就代表並沒有命令列編輯功能;此時只能使用 backspace 去除該行的字元。" +"補完等功能。最快檢查是否支援命令列編輯的方法是:在 Python 提示字元後輸入" +"一個單字,然後按左方向鍵(或 :kbd:`Control-b`\\ )。如果游標有移動,就" +"代表有命令列編輯功能;見附錄\\ :ref:`tut-interacting`\\ 介紹相關的按鍵。" +"如果什麼事都沒有發生,或者出現類似 ``^[[D`` 或 ``^B`` 的序列,就代表並" +"沒有命令列編輯功能;此時只能使用 backspace 去除目前這一行的字元。" #: ../../tutorial/interpreter.rst:46 msgid "" diff --git a/tutorial/modules.po b/tutorial/modules.po index 6f36b959c02..a4f7224cd25 100644 --- a/tutorial/modules.po +++ b/tutorial/modules.po @@ -1163,7 +1163,7 @@ msgid "" msgstr "" "你也可以用 ``from module import name`` 的 import 陳述式,編寫「相對 " "(relative) import」。這些 import 使用前導句號指示相對 import 中的目前套件和母" -"套件。例如,在 :mod:`!urround` 模組中,你可以使用: ::" +"套件。例如,在 :mod:`!surround` 模組中,你可以使用: ::" #: ../../tutorial/modules.rst:578 msgid "" diff --git a/tutorial/stdlib.po b/tutorial/stdlib.po index f5e278d0c3e..d9af8a700d1 100644 --- a/tutorial/stdlib.po +++ b/tutorial/stdlib.po @@ -423,9 +423,9 @@ msgid "" "for output formatting and manipulation. The module also supports objects " "that are timezone aware. ::" msgstr "" -":mod:`datetime` 模組提供許多 class 可以操作日期以及時間,從簡單從複雜都有。模" +":mod:`datetime` 模組提供許多 class 可以操作日期以及時間,從簡單到複雜都有。模" "組支援日期與時間的運算,而實作的重點是有效率的成員擷取以達到輸出格式化以及操" -"作。模組也提供支援時區換算的類別。 ::" +"作。模組也提供支援帶有時區資訊的類別。 ::" #: ../../tutorial/stdlib.rst:218 msgid ""