1
- # SOME DESCRIPTIVE TITLE.
2
1
# Copyright (C) 2001-2022, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
@@ -8,7 +7,7 @@ msgstr ""
8
7
"Project-Id-Version : Python 3.11\n "
9
8
"Report-Msgid-Bugs-To : \n "
10
9
"POT-Creation-Date : 2023-05-09 00:15+0000\n "
11
- "PO-Revision-Date : 2018-05-23 16:04+0000 \n "
10
+ "PO-Revision-Date : 2023-07-17 17:38+0800 \n "
12
11
"Last-Translator : Adrian Liaw <adrianliaw2000@gmail.com>\n "
13
12
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
13
"tw)\n "
@@ -17,6 +16,7 @@ msgstr ""
17
16
"Content-Type : text/plain; charset=UTF-8\n "
18
17
"Content-Transfer-Encoding : 8bit\n "
19
18
"Plural-Forms : nplurals=1; plural=0;\n "
19
+ "X-Generator : Poedit 3.3.2\n "
20
20
21
21
#: ../../library/io.rst:2
22
22
msgid ":mod:`io` --- Core tools for working with streams"
@@ -65,7 +65,7 @@ msgstr ""
65
65
66
66
#: ../../library/io.rst:51 ../../library/io.rst:855 ../../library/io.rst:1122
67
67
msgid "Text I/O"
68
- msgstr ""
68
+ msgstr "文字 I/O "
69
69
70
70
#: ../../library/io.rst:53
71
71
msgid ""
@@ -94,7 +94,7 @@ msgstr ""
94
94
95
95
#: ../../library/io.rst:72 ../../library/io.rst:1110
96
96
msgid "Binary I/O"
97
- msgstr ""
97
+ msgstr "二進位 (Binary) I/O "
98
98
99
99
#: ../../library/io.rst:74
100
100
msgid ""
@@ -120,17 +120,19 @@ msgstr ""
120
120
msgid ""
121
121
"The binary stream API is described in detail in the docs of :class:"
122
122
"`BufferedIOBase`."
123
- msgstr ""
123
+ msgstr "二進位資料串流 API 的詳細說明在 :class:`BufferedIOBase` 文件當中。 "
124
124
125
125
#: ../../library/io.rst:92
126
126
msgid ""
127
127
"Other library modules may provide additional ways to create text or binary "
128
128
"streams. See :meth:`socket.socket.makefile` for example."
129
129
msgstr ""
130
+ "其它函式庫模組可能提供額外的方法來建立文字或二進位資料串流。例如 :meth:"
131
+ "`socket.socket.makefile`。"
130
132
131
133
#: ../../library/io.rst:97
132
134
msgid "Raw I/O"
133
- msgstr ""
135
+ msgstr "原始 (Raw) I/O "
134
136
135
137
#: ../../library/io.rst:99
136
138
msgid ""
@@ -143,17 +145,19 @@ msgstr ""
143
145
#: ../../library/io.rst:106
144
146
msgid ""
145
147
"The raw stream API is described in detail in the docs of :class:`RawIOBase`."
146
- msgstr ""
148
+ msgstr "原始串流 API 在 :class:`RawIOBase` 文件中有詳細描述。 "
147
149
148
150
#: ../../library/io.rst:112
149
151
msgid "Text Encoding"
150
- msgstr ""
152
+ msgstr "文字編碼 "
151
153
152
154
#: ../../library/io.rst:114
153
155
msgid ""
154
156
"The default encoding of :class:`TextIOWrapper` and :func:`open` is locale-"
155
157
"specific (:func:`locale.getencoding`)."
156
158
msgstr ""
159
+ ":class:`TextIOWrapper` 和 :func:`open` 預設編碼是根據區域設定的 (locale-"
160
+ "specific) (:func:`locale.getencoding`)。"
157
161
158
162
#: ../../library/io.rst:117
159
163
msgid ""
@@ -162,6 +166,9 @@ msgid ""
162
166
"platforms use UTF-8 locale by default. This causes bugs because the locale "
163
167
"encoding is not UTF-8 for most Windows users. For example::"
164
168
msgstr ""
169
+ "然而,許多開發人員在開啟以 UTF-8 編碼的文字檔案(例如:JSON、TOML、Markdown"
170
+ "等)時忘記指定編碼,因為多數 Unix 平台預設使用 UTF-8 區域設定。這會導致錯誤,"
171
+ "因為對於大多數 Windows 使用者來說,預設地區編碼並非 UTF-8。舉例來說:"
165
172
166
173
#: ../../library/io.rst:126
167
174
msgid ""
@@ -170,6 +177,9 @@ msgid ""
170
177
"``encoding=\" utf-8\" ``. To use the current locale encoding, "
171
178
"``encoding=\" locale\" `` is supported since Python 3.10."
172
179
msgstr ""
180
+ "因此,強烈建議在開啟文字檔案時,明確指定編碼。若你想使用 UTF-8 編碼,請傳入 "
181
+ "``encoding=\" utf-8\" ``。若想使用目前的地區編碼,Python 3.10 以後的版本支援使"
182
+ "用 ``encoding=\" locale\" ``。"
173
183
174
184
#: ../../library/io.rst:135
175
185
msgid ":ref:`utf8-mode`"
@@ -179,19 +189,19 @@ msgstr ":ref:`utf8-mode`"
179
189
msgid ""
180
190
"Python UTF-8 Mode can be used to change the default encoding to UTF-8 from "
181
191
"locale-specific encoding."
182
- msgstr ""
192
+ msgstr "在 Python UTF-8 模式下,可以將預設編碼從特定地區編碼改為 UTF-8。 "
183
193
184
194
#: ../../library/io.rst:137
185
195
msgid ":pep:`686`"
186
196
msgstr ":pep:`686`"
187
197
188
198
#: ../../library/io.rst:138
189
199
msgid "Python 3.15 will make :ref:`utf8-mode` default."
190
- msgstr ""
200
+ msgstr "Python 3.15 將預設使用 :ref:`utf8-mode`。 "
191
201
192
202
#: ../../library/io.rst:143
193
203
msgid "Opt-in EncodingWarning"
194
- msgstr ""
204
+ msgstr "選擇性加入的編碼警告 "
195
205
196
206
#: ../../library/io.rst:145
197
207
msgid "See :pep:`597` for more details."
0 commit comments