@@ -151,20 +151,20 @@ msgstr "下列函数会在行缓冲区上操作。"
151
151
msgid ""
152
152
"Return the current contents of the line buffer (:c:data:`!rl_line_buffer` in"
153
153
" the underlying library)."
154
- msgstr ""
154
+ msgstr "返回行缓冲区的当前内容 (底层库中的 :c:data:`!rl_line_buffer`)。 "
155
155
156
156
#: ../../library/readline.rst:91
157
157
msgid ""
158
158
"Insert text into the line buffer at the cursor position. This calls "
159
159
":c:func:`!rl_insert_text` in the underlying library, but ignores the return "
160
160
"value."
161
- msgstr ""
161
+ msgstr "将文本插入到行缓冲区的当前游标位置。 该函数会调用底层库中的 :c:func:`!rl_insert_text`,但会忽略其返回值。 "
162
162
163
163
#: ../../library/readline.rst:98
164
164
msgid ""
165
165
"Change what's displayed on the screen to reflect the current contents of the"
166
166
" line buffer. This calls :c:func:`!rl_redisplay` in the underlying library."
167
- msgstr ""
167
+ msgstr "改变屏幕的显示以反映行缓冲区的当前内容。 该函数会调用底层库中的 :c:func:`!rl_redisplay`。 "
168
168
169
169
#: ../../library/readline.rst:103
170
170
msgid "History file"
@@ -180,13 +180,17 @@ msgid ""
180
180
" filename is :file:`~/.history`. This calls :c:func:`!read_history` in the "<
10000
/span>
181
181
"underlying library."
182
182
msgstr ""
183
+ "载入一个 readline 历史文件,并将其添加到历史列表。 默认文件名为 :file:`~/.history`。 此函数会调用底层库中的 "
184
+ ":c:func:`!read_history`。"
183
185
184
186
#: ../../library/readline.rst:117
185
187
msgid ""
186
188
"Save the history list to a readline history file, overwriting any existing "
187
189
"file. The default filename is :file:`~/.history`. This calls "
188
190
":c:func:`!write_history` in the underlying library."
189
191
msgstr ""
192
+ "将历史列表保存到 readline 历史文件,覆盖任何现有的文件。 默认文件名为 :file:`~/.history`。 此函数会调用底层库中的 "
193
+ ":c:func:`!write_history`。"
190
194
191
195
#: ../../library/readline.rst:124
192
196
msgid ""
@@ -195,6 +199,8 @@ msgid ""
195
199
":c:func:`!append_history` in the underlying library. This function only "
196
200
"exists if Python was compiled for a version of the library that supports it."
197
201
msgstr ""
202
+ "将历史列表的最后 *nelements* 项添加到历史文件。 默认文件名为 :file:`~/.history`。 该文件必须已存在。 "
203
+ "此函数会调用底层库中的 :c:func:`!append_history`。 此函数仅当 Python 是针对支持该功能的库版本编译时才会存在。"
198
204
199
205
#: ../../library/readline.rst:136
200
206
msgid ""
@@ -203,6 +209,8 @@ msgid ""
203
209
"file, by calling :c:func:`!history_truncate_file` in the underlying library."
204
210
" Negative values imply unlimited history file size."
205
211
msgstr ""
212
+ "设置或返回需要保存到历史文件的条目行数。 :func:`write_history_file` 函数会通过调用底层库中的 "
213
+ ":c:func:`!history_truncate_file` 以使用该值来截取历史文件。 负值意味着不限制历史文件的大小。"
206
214
207
215
#: ../../library/readline.rst:144
208
216
msgid "History list"
@@ -218,6 +226,8 @@ msgid ""
218
226
"underlying library. The Python function only exists if Python was compiled "
219
227
"for a version of the library that supports it."
220
228
msgstr ""
229
+ "清空当前历史。 此函数会调用底层库中的 :c:func:`!clear_history`。 此 Python 函数仅当 Python "
230
+ "是针对支持该功能的库版本编译时才会存在。"
221
231
222
232
#: ../../library/readline.rst:158
223
233
msgid ""
@@ -231,13 +241,14 @@ msgid ""
231
241
"Return the current contents of history item at *index*. The item index is "
232
242
"one-based. This calls :c:func:`!history_get` in the underlying library."
233
243
msgstr ""
244
+ "返回 *index* 号位置上的历史条目的当前内容。 条目索引从一开始。 此函数会调用底层库中的 :c:func:`!history_get`。"
234
245
235
246
#: ../../library/readline.rst:171
236
247
msgid ""
237
248
"Remove history item specified by its position from the history. The position"
238
249
" is zero-based. This calls :c:func:`!remove_history` in the underlying "
239
250
"library."
240
- msgstr ""
251
+ msgstr "从历史列表中移除指定位置上的历史条目。 条目位置从零开始。 此函数会调用底层库中的 :c:func:`!remove_history`。 "
241
252
242
253
#: ../../library/readline.rst:178
243
254
msgid ""
0 commit comments