Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e1c76e5

Browse files
[po] auto sync
1 parent 9b5045d commit e1c76e5

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

library/mmap.po

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -291,17 +291,22 @@ msgid ""
291291
"systems (including Linux), *start* must be a multiple of the "
292292
":const:`PAGESIZE`."
293293
msgstr ""
294+
"将有关内存区域的建议 *option* 发送至内核,从 *start* 开始扩展 *length* 个字节。 *option* 必须为系统中可用的 "
295+
":ref:`MADV_* 常量 <madvise-constants>` 之一。 如果省略 *start* 和 *length*,则会包含整个映射。 "
296+
"在某些系统中(包括 Linux),*start* 必须为 :const:`PAGESIZE` 的倍数。"
294297

295298
#: ../../library/mmap.rst:215
296299
msgid "Availability: Systems with the ``madvise()`` system call."
297-
msgstr ""
300+
msgstr "可用性: 具有 ``madvise()`` 系统调用的系统。"
298301

299302
#: ../../library/mmap.rst:222
300303
msgid ""
301304
"Copy the *count* bytes starting at offset *src* to the destination index "
302305
"*dest*. If the mmap was created with :const:`ACCESS_READ`, then calls to "
303306
"move will raise a :exc:`TypeError` exception."
304307
msgstr ""
308+
"将从偏移量 *src* 开始的 *count* 个字节拷贝到目标索引号 *dest*。 如果 mmap 创建时设置了 "
309+
":const:`ACCESS_READ`,则调用 move 将引发 :exc:`TypeError` 异常。"
305310

306311
#: ../../library/mmap.rst:229
307312
msgid ""
@@ -310,30 +315,34 @@ msgid ""
310315
" bytes from the current file position to the end of the mapping. The file "
311316
"position is updated to point after the bytes that were returned."
312317
msgstr ""
318+
"返回一个 :class:`bytes`,其中包含从当前文件位置开始的至多 *n* 个字节。 如果参数省略,为 ``None`` "
319+
"或负数,则返回从当前文件位置开始直至映射结尾的所有字节。 文件位置会被更新为返回字节数据之后的位置。"
313320

314321
#: ../../library/mmap.rst:235
315322
msgid "Argument can be omitted or ``None``."
316-
msgstr ""
323+
msgstr "参数可被省略或为 ``None``。"
317324

318325
#: ../../library/mmap.rst:240
319326
msgid ""
320327
"Returns a byte at the current file position as an integer, and advances the "
321328
"file position by 1."
322-
msgstr ""
329+
msgstr "将当前文件位置上的一个字节以整数形式返回,并让文件位置前进 1。"
323330

324331
#: ../../library/mmap.rst:246
325332
msgid ""
326333
"Returns a single line, starting at the current file position and up to the "
327334
"next newline. The file position is updated to point after the bytes that "
328335
"were returned."
329-
msgstr ""
336+
msgstr "返回一个单独的行,从当前文件位置开始直到下一个换行符。 文件位置会被更新为返回字节数据之后的位置。"
330337

331338
#: ../../library/mmap.rst:253
332339
msgid ""
333340
"Resizes the map and the underlying file, if any. If the mmap was created "
334341
"with :const:`ACCESS_READ` or :const:`ACCESS_COPY`, resizing the map will "
335342
"raise a :exc:`TypeError` exception."
336343
msgstr ""
344+
"改变映射以及下层文件的大小,如果存在的话。 如果 mmap 创建时设置了 :const:`ACCESS_READ` 或 "
345+
":const:`ACCESS_COPY`,则改变映射大小将引发 :exc:`TypeError` 异常。"
337346

338347
#: ../../library/mmap.rst:260
339348
msgid ""
@@ -342,6 +351,8 @@ msgid ""
342351
"arguments *start* and *end* are interpreted as in slice notation. Returns "
343352
"``-1`` on failure."
344353
msgstr ""
354+
"返回子序列 *sub* 在对象内被找到的最大索引号,使得 *sub* 被包含在 [*start*, *end*] 范围中。 可选参数 *start* 和"
355+
" *end* 会被解读为切片表示法。 如果未找到则返回 ``-1``。"
345356

346357
#: ../../library/mmap.rst:271
347358
msgid ""
@@ -350,16 +361,18 @@ msgid ""
350361
"``os.SEEK_CUR`` or ``1`` (seek relative to the current position) and "
351362
"``os.SEEK_END`` or ``2`` (seek relative to the file's end)."
352363
msgstr ""
364+
"设置文件的当前位置。 *whence* 参数为可选项并且默认为 ``os.SEEK_SET`` 或 ``0`` (绝对文件定位);其他值还有 "
365+
"``os.SEEK_CUR`` 或 ``1`` (相对当前位置查找) 和 ``os.SEEK_END`` 或 ``2`` (相对文件末尾查找)。"
353366

354367
#: ../../library/mmap.rst:279
355368
msgid ""
356369
"Return the length of the file, which can be larger than the size of the "
357370
"memory-mapped area."
358-
msgstr ""
371+
msgstr "返回文件的长度,该数值可以大于内存映射区域的大小。"
359372

360373
#: ../../library/mmap.rst:285
361374
msgid "Returns the current position of the file pointer."
362-
msgstr ""
375+
msgstr "返回文件指针的当前位置。"
363376

364377
#: ../../library/mmap.rst:290
365378
msgid ""

reference/lexical_analysis.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ msgid ""
106106
"end of the logical line unless the implicit line joining rules are invoked. "
107107
"Comments are ignored by the syntax."
108108
msgstr ""
109-
"注释以井号 (``#``) 开头,在物理行末尾截止。注意,井号不是字符串字面量。除非启用了隐式行拼接规则,否则,注释意味着逻辑行结束。句法将忽略注释。"
109+
"注释以井号 (``#``) 开头,在物理行末尾截止。注意,井号不是字符串字面值。除非启用了隐式行拼接规则,否则,注释代表逻辑行结束。句法不解析注释。"
110110

111111
#: ../../reference/lexical_analysis.rst:79
112112
msgid "Encoding declarations"

0 commit comments

Comments
 (0)