File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,21 @@ msgid ""
223223"``'a'`` and the file does not exist at all, it is created. If *mode* is "
224224"``'r'`` or ``'a'``, the file should be seekable."
225225msgstr ""
226+ "*mode* パラメータには、既存のファイルを読み込む場合は ``'r'`` 、内容を消去し"
227+ "て新しいファイルに書き込む場合は ``'w'`` 、既存のファイルの末尾に追加する場"
228+ "合は ``'a'`` 、ファイルが存在しない場合にのみファイルを作成して書き込む場合"
229+ "は ``'x'`` を指定します。\n"
230+ "*mode* が ``'x'`` で *file* が既存のファイルを指している場合、 :exc:"
231+ "`FileExistsError` が発生します。\n"
232+ "*mode* が ``'a'`` で *file* が既存の ZIP ファイルを指している場合、新しい "
233+ "ZIP アーカイブがそのファイルに追加されます。\n"
234+ "*file* が ZIP ファイルでない場合は、ファイルの末尾にあたらしい ZIP アーカイブ"
235+ "が追加されます。\n"
236+ "これは、既存のファイル (例えば :file:`python.exe`) に ZIP アーカイブを付け加"
237+ "える用途を想定したものです。\n"
238+ "*mode* が ``'a'`` で *file* が存在しない場合は、ファイルが作成されます。\n"
239+ "*mode* が ``'r'`` か ``'a'`` の場合、ファイルはシーク可能である必要がありま"
240+ "す。"
226241
227242#: ../../library/zipfile.rst:160
228243msgid ""
You can’t perform that action at this time.
0 commit comments