- Notifications
You must be signed in to change notification settings - Fork 214
/
Copy pathasyncio.po
215 lines (186 loc) · 6.71 KB
/
asyncio.po
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# Copyright (C) 2001-2022, Python Software Foundation
# This file is distributed under the same license as the Python package.
#
# Translators:
# Adrian Liaw <adrianliaw2000@gmail.com>, 2018
# Matt Wang <mattwang44@gmail.com>, 2021
# Leo Wang <ascodeasice@gmail.com>, 2023
msgid ""
msgstr ""
"Project-Id-Version: Python 3.13\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-11 00:13+0000\n"
"PO-Revision-Date: 2021-11-23 12:40+0800\n"
"Last-Translator: Matt Wang <mattwang44@gmail.com>\n"
"Language-Team: Chinese - TAIWAN (https://github.com/python/python-docs-zh-"
"tw)\n"
"Language: zh_TW\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 3.0\n"
#:../../library/asyncio.rst:91
msgid"High-level APIs"
msgstr"高階 API"
#:../../library/asyncio.rst:103
msgid"Low-level APIs"
msgstr"低階 API"
#:../../library/asyncio.rst:114
msgid"Guides and Tutorials"
msgstr"指南與教學"
#:../../library/asyncio.rst:2
msgid":mod:`!asyncio` --- Asynchronous I/O"
msgstr":mod:`!asyncio` --- 非同步 I/O"
#:../../library/asyncio.rst:-1
msgid"Hello World!"
msgstr"Hello World!"
#:../../library/asyncio.rst:13
msgid""
"import asyncio\n"
"\n"
"async def main():\n"
" print('Hello ...')\n"
" await asyncio.sleep(1)\n"
" print('... World!')\n"
"\n"
"asyncio.run(main())"
msgstr""
"import asyncio\n"
"\n"
"async def main():\n"
" print('Hello ...')\n"
" await asyncio.sleep(1)\n"
" print('... World!')\n"
"\n"
"asyncio.run(main())"
#:../../library/asyncio.rst:22
msgid""
"asyncio is a library to write **concurrent** code using the **async/await** "
"syntax."
msgstr""
"asyncio 是讓使用者以 **async/await** 語法來編寫\\ *並行 (concurrent)* 程式碼"
"的函式庫 (library)。"
#:../../library/asyncio.rst:25
msgid""
"asyncio is used as a foundation for multiple Python asynchronous frameworks "
"that provide high-performance network and web-servers, database connection "
"libraries, distributed task queues, etc."
msgstr""
"asyncio 作為多個 Python 非同步框架的基礎,在高效能網路與網頁伺服器、資料庫連"
"線函式庫、分散式任務佇列等服務都可以看得到它。"
#:../../library/asyncio.rst:29
msgid""
"asyncio is often a perfect fit for IO-bound and high-level **structured** "
"network code."
msgstr""
"asyncio 往往是個建構 IO 密集型與高階層\\ **結構化**\\ 網路程式碼的完美選擇。"
#:../../library/asyncio.rst:32
msgid"asyncio provides a set of **high-level** APIs to:"
msgstr"asyncio 提供了一系列\\ **高階** API:"
#:../../library/asyncio.rst:34
msgid""
":ref:`run Python coroutines <coroutine>` concurrently and have full control "
"over their execution;"
msgstr""
"並行地\\ :ref:`運行 Python 協程 (coroutine) <coroutine>` 並擁有完整控制權;"
#:../../library/asyncio.rst:37
msgid"perform :ref:`network IO and IPC <asyncio-streams>`;"
msgstr"執行\\ :ref:`網路 IO 與 IPC <asyncio-streams>`;"
#:../../library/asyncio.rst:39
msgid"control :ref:`subprocesses <asyncio-subprocess>`;"
msgstr"控制\\ :ref:`子行程 (subprocess) <asyncio-subprocess>`;"
#:../../library/asyncio.rst:41
msgid"distribute tasks via :ref:`queues <asyncio-queues>`;"
msgstr"透過\\ :ref:`佇列 (queue) <asyncio-queues>` 分配任務;"
#:../../library/asyncio.rst:43
msgid":ref:`synchronize <asyncio-sync>` concurrent code;"
msgstr":ref:`同步 <asyncio-sync>`\\ 並行程式碼;"
#:../../library/asyncio.rst:45
msgid""
"Additionally, there are **low-level** APIs for *library and framework "
"developers* to:"
msgstr""
"此外,還有一些給\\ *函式庫與框架 (framework) 開發者*\\ 的\\ **低階** API:"
#:../../library/asyncio.rst:48
msgid""
"create and manage :ref:`event loops <asyncio-event-loop>`, which provide "
"asynchronous APIs for :ref:`networking <loop_create_server>`, running :ref:"
"`subprocesses <loop_subprocess_exec>`, handling :ref:`OS signals "
"<loop_add_signal_handler>`, etc;"
msgstr""
"建立與管理 :ref:`event loops(事件迴圈) <asyncio-event-loop>`,它提供了能被"
"用於\\ :ref:`網路 <loop_create_server>`、執行\\ :ref:`子行程 "
"<loop_subprocess_exec>`、處理\\ :ref:`作業系統訊號 "
"<loop_add_signal_handler>`\\ 等任務的非同步 API;"
#:../../library/asyncio.rst:53
msgid""
"implement efficient protocols using :ref:`transports <asyncio-transports-"
"protocols>`;"
msgstr""
"使用 :ref:`transports(asyncio 底層傳輸相關類別) <asyncio-transports-"
"protocols>`\\ 來實作高效能協定;"
#:../../library/asyncio.rst:56
msgid""
":ref:`bridge <asyncio-futures>` callback-based libraries and code with async/"
"await syntax."
msgstr""
"透過 async/await 語法來\\ :ref:`橋接 <asyncio-futures>`\\ 基於回呼 (callback-"
"based) 的函式庫與程式碼。"
#:../../includes/wasm-notavail.rst:3
msgid"Availability"
msgstr""
#:../../includes/wasm-notavail.rst:5
msgid""
"This module does not work or is not available on WebAssembly. See :ref:`wasm-"
"availability` for more information."
msgstr""
"此模組在 WebAssembly 平台上不起作用或無法使用。更多資訊請參閱 :ref:`wasm-"
"availability`。"
#:../../library/asyncio.rst:64
msgid"asyncio REPL"
msgstr""
#:../../library/asyncio.rst:65
#,fuzzy
msgid""
"You can experiment with an ``asyncio`` concurrent context in the :term:"
"`REPL`:"
msgstr"你能在 REPL 中對一個 ``asyncio`` 的並行情境 (context) 進行實驗:"
#:../../library/asyncio.rst:67
msgid""
"$ python -m asyncio\n"
"asyncio REPL ...\n"
"Use \"await\" directly instead of \"asyncio.run()\".\n"
"Type \"help\", \"copyright\", \"credits\" or \"license\" for more "
"information.\n"
">>> import asyncio\n"
">>> await asyncio.sleep(10, result='hello')\n"
"'hello'"
msgstr""
"$ python -m asyncio\n"
"asyncio REPL ...\n"
"Use \"await\" directly instead of \"asyncio.run()\".\n"
"Type \"help\", \"copyright\", \"credits\" or \"license\" for more "
"information.\n"
">>> import asyncio\n"
">>> await asyncio.sleep(10, result='hello')\n"
"'hello'"
#:../../library/asyncio.rst:77
msgid""
"Raises an :ref:`auditing event <auditing>` ``cpython.run_stdin`` with no "
"arguments."
msgstr""
#:../../library/asyncio.rst:79
msgid"(also 3.11.10, 3.10.15, 3.9.20, and 3.8.20) Emits audit events."
msgstr""
#:../../library/asyncio.rst:82
msgid""
"Uses PyREPL if possible, in which case :envvar:`PYTHONSTARTUP` is also "
"executed. Emits audit events."
msgstr""
#:../../library/asyncio.rst:90
msgid"Reference"
msgstr"參閱"
#:../../library/asyncio.rst:123
msgid"The source code for asyncio can be found in :source:`Lib/asyncio/`."
msgstr"asyncio 的原始碼可以在 :source:`Lib/asyncio/` 中找到。"