@@ -7,7 +7,7 @@ msgstr ""
7
7
"Project-Id-Version : Python 3.11\n "
8
8
"Report-Msgid-Bugs-To : \n "
9
9
"POT-Creation-Date : 2023-05-09 00:15+0000\n "
10
- "PO-Revision-Date : 2023-07-17 17:38 +0800\n "
10
+ "PO-Revision-Date : 2023-07-17 23:29 +0800\n "
11
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
12
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
13
13
"tw)\n "
@@ -20,7 +20,7 @@ msgstr ""
20
20
21
21
#: ../../library/io.rst:2
22
22
msgid ":mod:`io` --- Core tools for working with streams"
23
- msgstr ""
23
+ msgstr ":mod:`io` — 處理資料流的核心工具 "
24
24
25
25
#: ../../library/io.rst:15
26
26
msgid "**Source code:** :source:`Lib/io.py`"
@@ -62,6 +62,8 @@ msgid ""
62
62
"Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, "
63
63
"since :exc:`IOError` is now an alias of :exc:`OSError`."
64
64
msgstr ""
65
+ "原本會引發 :exec:`IOError` 的操作,現在將改成引發 :exec:`OSError`。因為 :"
66
+ "exec:`IOError` 現在是 :exec:`OSError` 的別名。"
65
67
66
68
#: ../../library/io.rst:51 ../../library/io.rst:855 ../../library/io.rst:1122
67
69
msgid "Text I/O"
@@ -80,17 +82,23 @@ msgid ""
80
82
"The easiest way to create a text stream is with :meth:`open()`, optionally "
81
83
"specifying an encoding::"
82
84
msgstr ""
85
+ "建立文字資料串流最簡單的方法是使用 :meth:`open()`,可選擇性地指定編碼:\n"
86
+ "\n"
87
+ "::"
83
88
84
89
#: ../../library/io.rst:63
85
90
msgid ""
86
91
"In-memory text streams are also available as :class:`StringIO` objects::"
87
92
msgstr ""
93
+ "記憶體內的文字資料流也可以使用 :class:`StringIO` 物件建立:\n"
94
+ "\n"
95
+ "::"
88
96
89
97
#: ../../library/io.rst:67
90
98
msgid ""
91
99
"The text stream API is described in detail in the documentation of :class:"
92
100
"`TextIOBase`."
93
- msgstr ""
101
+ msgstr "文字資料串流 API 的詳細說明在 :class:`TextIOBase` 文件當中。 "
94
102
95
103
#: ../../library/io.rst:72 ../../library/io.rst:1110
96
104
msgid "Binary I/O"
@@ -110,11 +118,18 @@ msgid ""
110
118
"The easiest way to create a binary stream is with :meth:`open()` with "
111
119
"``'b'`` in the mode string::"
112
120
msgstr ""
121
+ "建立二位資料串流最簡單的方法是使用 :meth:`open()`,並在 mode 字串中加入 "
122
+ "``’b’``:\n"
123
+ "\n"
124
+ "::"
113
125
114
126
#: ../../library/io.rst:85
115
127
msgid ""
116
128
"In-memory binary streams are also available as :class:`BytesIO` objects::"
117
129
msgstr ""
130
+ "記憶體內的二進位資料串流也可以透過 :class:`BytesIO` 物件來建立:\n"
131
+ "\n"
132
+ "::"
118
133
119
134
#: ../../library/io.rst:89
120
135
msgid ""
@@ -226,7 +241,7 @@ msgstr ""
226
241
227
242
#: ../../library/io.rst:162
228
243
msgid "High-level Module Interface"
229
- msgstr ""
244
+ msgstr "高階模組介面 "
230
245
231
246
#: ../../library/io.rst:166
232
247
msgid ""
@@ -237,7 +252,7 @@ msgstr ""
237
252
238
253
#: ../../library/io.rst:173
239
254
msgid "This is an alias for the builtin :func:`open` function."
240
- msgstr ""
255
+ msgstr "這是內建函式 :func:`open` 的別名。 "
241
256
242
257
#: ../../library/io.rst:175
243
258
msgid ""
@@ -259,10 +274,12 @@ msgid ""
259
274
"Opens the provided file with mode ``'rb'``. This function should be used "
260
275
"when the intent is to treat the contents as executable code."
261
276
msgstr ""
277
+ "以 ``’rb’`` 模式開啟提供的檔案。此函式應用於意圖將內容視為可執行的程式碼的情"
278
+ "況下。"
262
279
263
280
#: ../../library/io.rst:187
264
281
msgid "``path`` should be a :class:`str` and an absolute path."
265
- msgstr ""
282
+ msgstr "``path`` 應該要屬於 :class:`str` 類別,且是個絕對路徑。 "
266
283
267
284
#: ../../library/io.rst:189
268
285
msgid ""
0 commit comments