1
- # SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2022, Python Software Foundation
1
+ # Copyright (C) 2001-2023, Python Software Foundation
3
2
# This file is distributed under the same license as the Python package.
4
3
#
5
4
# Translators:
5
+ # Adrian Liaw <[email protected] >, 2018
6
+ # Matt Wang <[email protected] >, 2023
6
7
msgid ""
7
8
msgstr ""
8
9
"Project-Id-Version : Python 3.12\n "
9
10
"Report-Msgid-Bugs-To : \n "
10
11
"POT-Creation-Date : 2023-10-12 00:03+0000\n "
11
12
"PO-Revision-Date : 2018-05-23 16:07+0000\n "
12
- "Last-Translator : Adrian Liaw <adrianliaw2000 @gmail.com>\n "
13
+ "Last-Translator : Matt Wang <mattwag44 @gmail.com>\n "
13
14
"Language-Team : Chinese - TAIWAN (https://github.com/python/python-docs-zh- "
14
15
"tw)\n "
15
16
"Language : zh_TW\n "
@@ -20,7 +21,7 @@ msgstr ""
20
21
21
22
#: ../../library/pickletools.rst:2
22
23
msgid ":mod:`pickletools` --- Tools for pickle developers"
23
- msgstr ""
24
+ msgstr ":mod:`pickletools` --- pickle 開發者的工具 "
24
25
25
26
#: ../../library/pickletools.rst:8
26
27
msgid "**Source code:** :source:`Lib/pickletools.py`"
@@ -35,6 +36,10 @@ msgid ""
35
36
"`pickle`; ordinary users of the :mod:`pickle` module probably won't find "
36
37
"the :mod:`pickletools` module relevant."
37
38
msgstr ""
39
+ "該模組包含與 :mod:`pickle` 模組的詳細資訊相關的各種常數、一些有關實作的冗長註"
40
+ "釋以及一些用於分析已 pickle 資料的有用函式。該模組的內容對於有 :mod:`pickle` "
41
+ "相關工作的 Python 核心開發人員很有用;:mod:`pickle` 模組的一般使用者可能不會"
42
+ "發現 :mod:`pickletools` 模組。"
38
43
39
44
#: ../../library/pickletools.rst:23
40
45
msgid "Command line usage"
@@ -49,41 +54,47 @@ msgid ""
49
54
"pickle file that you want to examine comes from an untrusted source, ``-m "
50
55
"pickletools`` is a safer option because it does not execute pickle bytecode."
51
56
msgstr ""
57
+ "當從命令列呼叫時,``python -m pickletools`` 將拆解 (disassemble) 一個或多個 "
58
+ "pickle 檔案的內容。請注意,如果你想查看儲存在 pickle 中的 Python 物件而不是 "
59
+ "pickle 格式的詳細資訊,你可能需要使用 ``-m pickle``。但是,當你要檢查的 "
60
+ "pickle 檔案來自不受信任的來源時,``-m pickletools`` 是一個更安全的選項,因為"
61
+ "它不執行 pickle 位元組碼。"
52
62
53
63
#: ../../library/pickletools.rst:35
54
64
msgid "For example, with a tuple ``(1, 2)`` pickled in file ``x.pickle``:"
55
- msgstr ""
65
+ msgstr "例如,pickle 於檔案 ``x.pickle`` 中的元組 ``(1, 2)``: "
56
66
57
67
#: ../../library/pickletools.rst:52
58
68
msgid "Command line options"
59
69
msgstr "命令列選項"
60
70
61
71
#: ../../library/pickletools.rst:58
62
72
msgid "Annotate each line with a short opcode description."
63
- msgstr ""
73
+ msgstr "用簡短的操作碼 (opcode) 描述註釋每一行。 "
64
74
65
75
#: ../../library/pickletools.rst:62
66
76
msgid "Name of a file where the output should be written."
67
- msgstr ""
77
+ msgstr "應將輸出結果寫入之檔案的名稱。 "
68
78
69
79
#: ../../library/pickletools.rst:66
70
80
msgid "The number of blanks by which to indent a new MARK level."
71
- msgstr ""
81
+ msgstr "新 MARK 級別縮進的空格數。 "
72
82
73
83
#: ../../library/pickletools.rst:70
74
84
msgid ""
75
85
"When multiple objects are disassembled, preserve memo between disassemblies."
76
- msgstr ""
86
+ msgstr "當拆解多個物件時,會在拆解間保留備忘錄。 "
77
87
78
88
#: ../../library/pickletools.rst:75
79
89
msgid ""
80
90
"When more than one pickle file are specified, print given preamble before "
81
91
"each disassembly."
82
92
msgstr ""
93
+ "當指定多個 pickle 檔案時,會在每次拆解之前印出給定的一段序言 (preamble)。"
83
94
84
95
#: ../../library/pickletools.rst:81
85
96
msgid "Programmatic Interface"
86
- msgstr ""
97
+ msgstr "程式化介面 "
87
98
88
99
#: ../../library/pickletools.rst:86
89
100
msgid ""
@@ -97,6 +108,12 @@ msgid ""
97
108
"short description. The value of *annotate* is used as a hint for the column "
98
109
"where annotation should start."
99
110
msgstr ""
111
+ "將 pickle 的符號拆解 (symbolic disassembly) 輸出到類檔案物件 *out*,預設為 "
112
+ "``sys.stdout``。*pickle* 可以是字串或類檔案物件。*memo* 可以是一個 Python 字"
113
+ "典,將用作 pickle 的備忘錄;它可用於對同一 pickler 建立的多個 pickle 執行拆"
114
+ "解。串流中由 ``MARK`` 操作碼指示的連續級別由 *indentlevel* 空格縮進。如果為 "
115
+ "*annotate* 指定非零值,則輸出中的每個操作碼都會用簡短的描述進行註釋。"
116
+ "*annotate* 的值用作為註釋之起始行提示。"
100
117
101
118
#: ../../library/pickletools.rst:97
102
119
msgid "The *annotate* argument."
@@ -110,10 +127,16 @@ msgid ""
110
127
"object, of the opcode's argument; *pos* is the position at which this opcode "
111
128
"is located. *pickle* can be a string or a file-like object."
112
129
msgstr ""
130
+ "提供 pickle 中所有操作碼的一個 :term:`iterator`,回傳形式為 ``(opcode, arg, "
131
+ "pos)`` 三元組序列。*opcode* 是 :class:`OpcodeInfo` 類別的實例;*arg* 是操作碼"
132
+ "引數的解碼值(作為 Python 物件);*pos* 是該操作碼所在的位置。*pickle* 可以是"
133
+ "字串或類檔案物件。"
113
134
114
135
#: ../../library/pickletools.rst:110
115
136
msgid ""
116
137
"Returns a new equivalent pickle string after eliminating unused ``PUT`` "
117
138
"opcodes. The optimized pickle is shorter, takes less transmission time, "
118
139
"requires less storage space, and unpickles more efficiently."
119
140
msgstr ""
141
+ "消除未使用的 ``PUT`` 操作碼後回傳一個新的等效 pickle 字串。最佳化後的 pickle "
142
+ "更短、傳輸時間更少、需要更小的儲存空間,且 unpickle 效率也更高。"
0 commit comments