Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9fc9ad4

Browse files
authored
Merge branch '3.12' into cron/sync/3.12
2 parentse67a291 +da79861 commit9fc9ad4

File tree

12 files changed

+461
-154
lines changed

12 files changed

+461
-154
lines changed

‎.github/workflows/summarize_progress.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name:summarize_progress
22

33
on:
4-
schedule:
5-
-cron:'30 23 * * 5'
4+
schedule:
5+
-cron:'30 23 * * 5'
66

77
jobs:
88
ci:
@@ -22,7 +22,21 @@ jobs:
2222
chmod +x .scripts/summarize_progress.sh
2323
.scripts/summarize_progress.sh
2424
shell:bash
25+
2526

26-
-uses:stefanzweifel/git-auto-commit-action@v5
27+
-name:Checkout wiki code
28+
uses:actions/checkout@v2
2729
with:
28-
commit_message:Weekly Update -- Summarize Progress
30+
repository:${{github.repository}}.wiki
31+
path:markdown
32+
33+
-name:Copy content
34+
run:|
35+
cp .scripts/summarize_progress/dist/summarize_progress.md markdown/各檔案翻譯進度清單.md
36+
shell:bash
37+
38+
-name:Commit wiki code
39+
uses:stefanzweifel/git-auto-commit-action@v5
40+
with:
41+
commit_message:Weekly Update -- Summarize Progress
42+
repository:markdown

‎README.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ the PSF for inclusion in the documentation.
9999
按鈕),這樣會把整個專案複製一份到你的 GitHub 帳號底下,你可以對這個 fork
100100
進行修改。
101101

102-
第一次貢獻以前(還沒有 clone 過)
102+
第一次貢獻以前(還沒有 clone 過
103103
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
104104

105105
請在 terminal 裡依照以下步驟:
@@ -318,12 +318,7 @@ reST 語法注意事項
318318

319319
..code-block::rst
320320
321-
以下是個程式範例:
322-
323-
::
324-
325-
注意\**額外的空行是必須的**。
326-
321+
以下是個程式範例: ::
327322
328323
術語表 Glossary
329324
===============

‎library/__main__.po

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ msgid ""
4848
"ref:`tut-modules` for an introduction."
4949
msgstr""
5050
"這兩種機制都與 Python 模組有關;使用者如何與它們互動以及它們如何彼此互動。下"
51-
"面會詳細解釋它們。如果你不熟悉 Python 模組,請參閱教學章節 :ref:`tut-modules`"
52-
"的介紹。"
51+
"面會詳細解釋它們。如果你不熟悉 Python 模組,請參閱教學章節 :ref:`tut-"
52+
"modules`的介紹。"
5353

5454
#:../../library/__main__.rst:25
5555
msgid"``__name__ == '__main__'``"
@@ -92,9 +92,9 @@ msgid ""
9292
"program needs. Sometimes\"top-level code\" is called an *entry point* to "
9393
"the application."
9494
msgstr""
95-
"``__main__`` 是執行頂層程式碼的環境名稱。「頂層程式碼」是使用者指定且第一"
96-
"個開始運作的 Python 模組。它是「頂層」的原因是因為它引入程式所需的所有其他模"
97-
"組。有時「頂層程式碼」被稱為應用程式的\\ *入口點*。"
95+
"``__main__`` 是執行頂層程式碼的環境名稱。「頂層程式碼」是使用者指定且第一個開"
96+
"始運作的 Python 模組。它是「頂層」的原因是因為它引入程式所需的所有其他模組。"
97+
"有時「頂層程式碼」被稱為應用程式的\\ *入口點*。"
9898

9999
#:../../library/__main__.rst:53
100100
msgid"The top-level code environment can be:"
@@ -179,8 +179,8 @@ msgid ""
179179
"function named ``main`` encapsulates the program's primary behavior::"
180180
msgstr""
181181
"在 ``if __name__ == '__main__'`` 下面的區塊中放置盡可能少的陳述式可以提高程式"
182-
"碼的清晰度和正確性。大多數情況下,名為 ``main`` 的函式封裝 (encapsulate)了程式"
183-
"的主要行為: ::"
182+
"碼的清晰度和正確性。大多數情況下,名為 ``main`` 的函式封裝 (encapsulate)了程"
183+
"式的主要行為: ::"
184184

185185
#:../../library/__main__.rst:151
186186
msgid""
@@ -219,8 +219,8 @@ msgid ""
219219
"return value of ``main`` is passed into :func:`sys.exit`. For example::"
220220
msgstr""
221221
"``main`` 函式通常用於透過將它們指定為控制台腳本的入口點來建立命令列工具。完成"
222-
"後,`pip <https://pip.pypa.io/>`_ 將函式呼叫插入到模板腳本中,其中 "
223-
"``main``的回傳值被傳遞到 :func:`sys.exit` 中。例如: ::"
222+
"後,`pip <https://pip.pypa.io/>`_ 將函式呼叫插入到模板腳本中,其中``main``"
223+
"的回傳值被傳遞到 :func:`sys.exit` 中。例如: ::"
224224

225225
#:../../library/__main__.rst:175
226226
msgid""
@@ -230,8 +230,8 @@ msgid ""
230230
"if your function does not have a return statement)."
231231
msgstr""
232232
"由於對 ``main`` 的呼叫包含在 :func:`sys.exit` 中,因此期望你的函式將傳回一些"
233-
"可接受作為 :func:`sys.exit` 輸入的值;通常來說,會是一個整數或 "
234-
"``None``\\(如果你的函式沒有 return 陳述式,則相當於回傳此值)。"
233+
"可接受作為 :func:`sys.exit` 輸入的值;通常來說,會是一個整數或``None``\\(如"
234+
"果你的函式沒有 return 陳述式,則相當於回傳此值)。"
235235

236236
#:../../library/__main__.rst:180
237237
msgid""
@@ -252,9 +252,9 @@ msgid ""
252252
"py`` example from earlier exemplifies using the ``sys.exit(main())`` "
253253
"convention."
254254
msgstr""
255-
"特別是,要謹慎處理從 ``main`` 函式回傳字串。:func:`sys.exit`會將字串引數直"
256-
"譯為失敗訊息,因此你的程式將有一個表示失敗的結束代碼 ``1``,並且該字串將被"
257-
"寫入 :data:`sys.stderr`。前面的 ``echo.py`` 範例使用慣例的 ``sys."
255+
"特別是,要謹慎處理從 ``main`` 函式回傳字串。:func:`sys.exit`會將字串引數直譯"
256+
"為失敗訊息,因此你的程式將有一個表示失敗的結束代碼 ``1``,並且該字串將被寫"
257+
" :data:`sys.stderr`。前面的 ``echo.py`` 範例使用慣例的 ``sys."
258258
"exit(main())`` 進行示範。"
259259

260260
#:../../library/__main__.rst:193
@@ -263,8 +263,8 @@ msgid ""
263263
"collection of tutorials and references on how to distribute and install "
264264
"Python packages with modern tools."
265265
msgstr""
266-
"`Python 打包使用者指南 <https://packaging.python.org/>`_\\包含一系列如何使"
267-
"用現代工具發行和安裝 Python 套件的教學和參考資料。"
266+
"`Python 打包使用者指南 <https://packaging.python.org/>`_\\包含一系列如何使用"
267+
"現代工具發行和安裝 Python 套件的教學和參考資料。"
268268

269269
#:../../library/__main__.rst:199
270270
msgid"``__main__.py`` in Python Packages"
@@ -307,8 +307,8 @@ msgid ""
307307
"the :ref:`tut-modules` section of the tutorial."
308308
msgstr""
309309
"請注意,``from .student import search_students`` 是相對引入的範例。在引用套件"
310-
"內的模組時,可以使用此引入樣式。有關更多詳細資訊,請參閱 :ref:`tut-"
311-
"modules`教學章節中的 :ref:`intra-package-references`。"
310+
"內的模組時,可以使用此引入樣式。有關更多詳細資訊,請參閱 :ref:`tut-modules`"
311+
"教學章節中的 :ref:`intra-package-references`。"
312312

313313
#:../../library/__main__.rst:241
314314
msgid""
@@ -327,8 +327,9 @@ msgid ""
327327
"for a ``__main__.py`` file within a package, because its ``__name__`` "
328328
"attribute will include the package's path if imported::"
329329
msgstr""
330-
"如果在套件裡面的 ``__main__.py`` 檔案使用 ``if __name__ == '__main__'`` 區塊,"
331-
"它依然會如預期般地運作。因為當引入套件,其 ``__name__`` 屬性將會包含套件的路徑: ::"
330+
"如果在套件裡面的 ``__main__.py`` 檔案使用 ``if __name__ == '__main__'`` 區"
331+
"塊,它依然會如預期般地運作。因為當引入套件,其 ``__name__`` 屬性將會包含套件"
332+
"的路徑: ::"
332333

333334
#:../../library/__main__.rst:254
334335
msgid""
@@ -345,8 +346,8 @@ msgid ""
345346
"in the standard library. It doesn't contain a ``if __name__ == '__main__'`` "
346347
"block. You can invoke it with ``python -m venv [directory]``."
347348
msgstr""
348-
"請參閱 :mod:`venv` 作為標準函式庫中具有最小 ``__main__.py`` 的套件為範例。它不"
349-
"包含 ``if __name__ == '__main__'`` 區塊。你可以使用 ``python -m venv "
349+
"請參閱 :mod:`venv` 作為標準函式庫中具有最小 ``__main__.py`` 的套件為範例。"
350+
"不包含 ``if __name__ == '__main__'`` 區塊。你可以使用 ``python -m venv "
350351
"[directory]`` 來呼叫它。"
351352

352353
#:../../library/__main__.rst:264
@@ -400,8 +401,8 @@ msgid ""
400401
"the line with ``my_name =\"Dinsdale\"`` fixes the program and now it exits "
401402
"with status code 0, indicating success:"
402403
msgstr""
403-
"程式的結束代碼將為 1,表示出現錯誤。取消註解 ``my_name =\"Dinsdale\"``"
404-
"修復程式後,現在它以狀態碼 0 結束,表示成功:"
404+
"程式的結束代碼將為 1,表示出現錯誤。取消註解 ``my_name =\"Dinsdale\"``而修"
405+
"復程式後,現在它以狀態碼 0 結束,表示成功:"
405406

406407
#:../../library/__main__.rst:335
407408
msgid""
@@ -410,9 +411,9 @@ msgid ""
410411
"the ``if __name__ ==\"__main__\"`` block of the ``start`` module. Why does "
411412
"this work?"
412413
msgstr""
413-
"請注意,引入 ``__main__`` 並不會因為不經意地執行放在 ``start`` 模組中 "
414-
"``if__name__ ==\"__main__\"`` 區塊的頂層程式碼(本來是給腳本使用的)而造成任何問題"
415-
"。為什麼這樣做會如預期運作?"
414+
"請注意,引入 ``__main__`` 並不會因為不經意地執行放在 ``start`` 模組中``if"
415+
"__name__ ==\"__main__\"`` 區塊的頂層程式碼(本來是給腳本使用的)而造成任何問"
416+
"。為什麼這樣做會如預期運作?"
416417

417418
#:../../library/__main__.rst:339
418419
msgid""
@@ -426,21 +427,21 @@ msgid ""
426427
"<import-dunder-main>` in the import system's reference for details on how "
427428
"this works."
428429
msgstr""
429-
"當 Python 直譯器啟動時,會在 :data:`sys.modules` 中插入一個空的 ``__main__``"
430-
",並透過執行頂層程式碼來填充它。在我們的範例中,這是 ``start`` 模組,它將逐"
431-
"行執行並引入 ``namely``。接著,``namely`` 引入 ``__main__``\\ (其實是 "
430+
"當 Python 直譯器啟動時,會在 :data:`sys.modules` 中插入一個空的 ``__main__`` "
431+
"模組,並透過執行頂層程式碼來填充它。在我們的範例中,這是 ``start`` 模組,它將"
432+
"逐行執行並引入 ``namely``。接著,``namely`` 引入 ``__main__``\\ (其實是 "
432433
"``start``)。這就是一個引入循環!幸運的是,由於部分填充的 ``__main__`` 模組存"
433434
"在於 :data:`sys.modules` 中,Python 將其傳遞給 ``namely``。請參閱引入系統參考"
434-
"文件中的\\ :ref:`關於 __main__ 的特別考量 <import-dunder-main>`\\了解其工作原理"
435-
"的詳細資訊。"
435+
"文件中的\\ :ref:`關於 __main__ 的特別考量 <import-dunder-main>`\\了解其工作"
436+
"原理的詳細資訊。"
436437

437438
#:../../library/__main__.rst:348
438439
msgid""
439440
"The Python REPL is another example of a\"top-level environment\", so "
440441
"anything defined in the REPL becomes part of the ``__main__`` scope::"
441442
msgstr""
442-
"Python REPL 是「頂層環境」的另一個範例,因此 REPL 中定義的任何內容都成為 "
443-
"作域的一部分: ::"
443+
"Python REPL 是「頂層環境」的另一個範例,因此 REPL 中定義的任何內容都成為作域"
444+
"的一部分: ::"
444445

445446
#:../../library/__main__.rst:364
446447
msgid""

‎library/asyncio-runner.po

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@ msgstr ""
5656
msgid""
5757
"This function cannot be called when another asyncio event loop is running in "
5858
"the same thread."
59-
msgstr""
59+
msgstr"當另一個非同步事件迴圈在同一執行緒中執行時,無法呼叫此函式。"
6060

6161
#:../../library/asyncio-runner.rst:36../../library/asyncio-runner.rst:83
6262
msgid""
6363
"If *debug* is ``True``, the event loop will be run in debug mode. ``False`` "
6464
"disables debug mode explicitly. ``None`` is used to respect the global :ref:"
6565
"`asyncio-debug-mode` settings."
6666
msgstr""
67+
"如果 *debug* 為 ``True``,事件迴圈會以除錯模式執行。``False`` 則會關閉除錯模"
68+
"式。``None`` 則會優先使用\\ :ref:`除錯模式 <asyncio-debug-mode>`\\ 的全域設"
69+
"定。"
6770

6871
#:../../library/asyncio-runner.rst:40
6972
msgid""
@@ -73,6 +76,10 @@ msgid ""
7376
"programs, and should ideally only be called once. It is recommended to use "
7477
"*loop_factory* to configure the event loop instead of policies."
7578
msgstr""
79+
"如果 *loop_factory* 不為 ``None``,它會被用於建立一個新的事件迴圈;否則會改"
80+
"用 :func:`asyncio.new_event_loop`。迴圈會在最後關閉。這個函式應該要作為"
81+
"asyncio 程式的主要進入點,且理想上僅會被呼叫一次。推薦使用 *loop_factory* 來"
82+
"設定事件迴圈時而不是使用 policies(政策)。"
7683

7784
#:../../library/asyncio-runner.rst:46
7885
msgid""

‎library/copyreg.po

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
# SOME DESCRIPTIVE TITLE.
2-
# Copyright (C) 2001-2022, Python Software Foundation
1+
# Copyright (C) 2001-2023, Python Software Foundation
32
# This file is distributed under the same license as the Python package.
43
#
54
# Translators:
5+
# Liang-Bo Wang <me@liang2.tw>, 2016
6+
# Matt Wang <mattwang44@gmail.com>, 2023
67
msgid ""
78
msgstr ""
89
"Project-Id-Version:Python 3.12\n"
910
"Report-Msgid-Bugs-To:\n"
1011
"POT-Creation-Date:2023-05-09 00:15+0000\n"
11-
"PO-Revision-Date:2016-11-19 00:29+0000\n"
12-
"Last-Translator:Liang-Bo Wang <me@liang2.tw>\n"
12+
"PO-Revision-Date:2023-12-29 00:29+0000\n"
13+
"Last-Translator:Matt Wang <mattwang44@gmail.com>\n"
1314
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1415
"tw)\n"
1516
"Language:zh_TW\n"
@@ -20,7 +21,7 @@ msgstr ""
2021

2122
#:../../library/copyreg.rst:2
2223
msgid":mod:`copyreg` --- Register :mod:`pickle` support functions"
23-
msgstr""
24+
msgstr":mod:`copyreg` --- 註冊 :mod:`pickle` 支援函式"
2425

2526
#:../../library/copyreg.rst:7
2627
msgid"**Source code:** :source:`Lib/copyreg.py`"
@@ -34,12 +35,18 @@ msgid ""
3435
"configuration information about object constructors which are not classes. "
3536
"Such constructors may be factory functions or class instances."
3637
msgstr""
38+
":mod:`copyreg` 模組提供了一種用以定義在 pickle 特定物件時使用之函式的方式。:"
39+
"mod:`pickle` 和 :mod:`copy` 模組在 pickle/copy 這些物件時使用這些函式。此模組"
40+
"提供有關非類別物件之建構函式的配置資訊。此類建構函式可以是工廠函式 (factory "
41+
"function) 或類別實例。"
3742

3843
#:../../library/copyreg.rst:24
3944
msgid""
4045
"Declares *object* to be a valid constructor. If *object* is not callable "
4146
"(and hence not valid as a constructor), raises :exc:`TypeError`."
4247
msgstr""
48+
"宣告 *object* 是一個有效的建構函式。如果 *object* 不可呼叫(因此不可作為有效"
49+
"的建構函式),則會引發 :exc:`TypeError`。"
4350

4451
#:../../library/copyreg.rst:30
4552
msgid""
@@ -48,19 +55,26 @@ msgid ""
4855
"containing between two and six elements. See the :attr:`~pickle.Pickler."
4956
"dispatch_table` for more details on the interface of *function*."
5057
msgstr""
58+
"宣告 *function* 應該用作 *type* 型別之物件的「歸約 (\"reduction\")」函式。"
59+
"*function* 必須回傳字串或包含 2 到 6 個元素的元組。有關 *function* 介面的更多"
60+
"詳細資訊,請參閱 :attr:`~pickle.Pickler.dispatch_table`。"
5161

5262
#:../../library/copyreg.rst:35
5363
msgid""
5464
"The *constructor_ob* parameter is a legacy feature and is now ignored, but "
5565
"if passed it must be a callable."
5666
msgstr""
67+
"*constructor_ob* 參數是一個遺留功能,現在已被忽略,但如果要傳遞它的話則必須是"
68+
"個可呼叫物件。"
5769

5870
#:../../library/copyreg.rst:38
5971
msgid""
6072
"Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler "
6173
"object or subclass of :class:`pickle.Pickler` can also be used for declaring "
6274
"reduction functions."
6375
msgstr""
76+
"請注意,pickler 物件或 :class:`pickle.Pickler` 子類別的 :attr:`~pickle."
77+
"Pickler.dispatch_table` 屬性也可用於宣告歸約函式。"
6478

6579
#:../../library/copyreg.rst:43
6680
msgid"Example"
@@ -70,7 +84,7 @@ msgstr "範例"
7084
msgid""
7185
"The example below would like to show how to register a pickle function and "
7286
"how it will be used:"
73-
msgstr""
87+
msgstr"下面範例展示如何註冊一個 pickle 函式以及如何使用它:"
7488

7589
#:../../library/copyreg.rst:9
7690
msgid"module"

‎library/math.po

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version:Python 3.12\n"
99
"Report-Msgid-Bugs-To:\n"
1010
"POT-Creation-Date:2023-07-17 17:39+0800\n"
11-
"PO-Revision-Date:2018-05-23 16:05+0000\n"
11+
"PO-Revision-Date:2024-01-03 17:00+0800\n"
1212
"Last-Translator:Adrian Liaw <adrianliaw2000@gmail.com>\n"
1313
"Language-Team:Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
1414
"tw)\n"
@@ -17,6 +17,7 @@ msgstr ""
1717
"Content-Type:text/plain; charset=UTF-8\n"
1818
"Content-Transfer-Encoding:8bit\n"
1919
"Plural-Forms:nplurals=1; plural=0;\n"
20+
"X-Generator:Poedit 3.4.2\n"
2021

2122
#:../../library/math.rst:2
2223
msgid":mod:`math` --- Mathematical functions"
@@ -26,7 +27,7 @@ msgstr ":mod:`math` --- 數學函式"
2627
msgid""
2728
"This module provides access to the mathematical functions defined by the C "
2829
"standard."
29-
msgstr""
30+
msgstr"此模組提供對 C 標準中定義的數學相關函式的存取。"
3031

3132
#:../../library/math.rst:16
3233
msgid""
@@ -39,12 +40,16 @@ msgid ""
3940
"of the unexpected complex number used as a parameter, so that the programmer "
4041
"can determine how and why it was generated in the first place."
4142
msgstr""
43+
"這些函式不支援複數;若您需要計算複數,請使用 :mod:`cmath` 模組的同名函式。這"
44+
"是因為大多數的使用者並不想學習那麼多理解複數所需的數學概念,所以根據支援複數"
45+
"與否分為兩種函式。收到一個例外而非複數回傳值,有助於程式設計師提早察覺參數中"
46+
"包含非預期的複數,進而從源頭查出導致此情況的原因。"
4247

4348
#:../../library/math.rst:25
4449
msgid""
4550
"The following functions are provided by this module. Except when explicitly "
4651
"noted otherwise, all return values are floats."
47-
msgstr""
52+
msgstr"此模組提供下列函式。除非特意註明,否則回傳值皆為浮點數。"
4853

4954
#:../../library/math.rst:30
5055
msgid"Number-theoretic and representation functions"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp