1010# Wu Pipi, 2019
1111# zkonge <[email protected] >, 20191212# ppcfish <[email protected] >, 201913- # Freesand Leo <[email protected] >, 20191413# Arisaka97 <[email protected] >, 202014+ # Freesand Leo <[email protected] >, 20201515#
1616#, fuzzy
1717msgid ""
@@ -20,7 +20,7 @@ msgstr ""
2020"Report-Msgid-Bugs-To : \n "
2121"POT-Creation-Date : 2020-02-09 12:40+0000\n "
2222"PO-Revision-Date : 2017-02-16 23:15+0000\n "
23- "Last-Translator : Arisaka97 <solitaire2312@gmail .com>, 2020\n "
23+ "Last-Translator : Freesand Leo <yuqinju@163 .com>, 2020\n "
2424"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2525"MIME-Version : 1.0\n "
2626"Content-Type : text/plain; charset=UTF-8\n "
@@ -537,51 +537,58 @@ msgstr ""
537537msgid ""
538538"Read and return one line from the stream. If *size* is specified, at most "
539539"*size* bytes will be read."
540- msgstr ""
540+ msgstr "从流中读取并返回一行。 如果指定了 *size*,将至多读取 *size* 个字节。 "
541541
542542#: ../../library/io.rst:317
543543msgid ""
544544"The line terminator is always ``b'\\ n'`` for binary files; for text files, "
545545"the *newline* argument to :func:`open` can be used to select the line "
546546"terminator(s) recognized."
547547msgstr ""
548+ "对于二进制文件行结束符总是 ``b'\\ n'``;对于文本文件,可以用将 *newline* 参数传给 :func:`open` "
549+ "的方式来选择要识别的行结束符。"
548550
549551#: ../../library/io.rst:323
550552msgid ""
551553"Read and return a list of lines from the stream. *hint* can be specified to"
552554" control the number of lines read: no more lines will be read if the total "
553555"size (in bytes/characters) of all lines so far exceeds *hint*."
554556msgstr ""
557+ "从流中读取并返回包含多行的列表。 可以指定 *hint* 来控制要读取的行数:如果(以字节/字符数表示的)所有行的总大小超出了 *hint* "
558+ "则将不会读取更多的行。"
555559
556560#: ../../library/io.rst:327
557561msgid ""
558562"Note that it's already possible to iterate on file objects using ``for line "
559563"in file: ...`` without calling ``file.readlines()``."
560564msgstr ""
565+ "请注意使用 ``for line in file: ...`` 就足够对文件对象进行迭代了,可以不必调用 ``file.readlines()``。"
561566
562567#: ../../library/io.rst:332
563568msgid ""
564569"Change the stream position to the given byte *offset*. *offset* is "
565570"interpreted relative to the position indicated by *whence*. The default "
566571"value for *whence* is :data:`SEEK_SET`. Values for *whence* are:"
567572msgstr ""
573+ "将流位置修改到给定的字节 *offset*。 *offset* 将相对于由 *whence* 指定的位置进行解析。 *whence* 的默认值为 "
574+ ":data:`SEEK_SET`。 *whence* 的可用值有:"
568575
569576#: ../../library/io.rst:336
570577msgid ""
571578":data:`SEEK_SET` or ``0`` -- start of the stream (the default); *offset* "
572579"should be zero or positive"
573- msgstr ""
580+ msgstr ":data:`SEEK_SET` 或 ``0`` -- 流的开头(默认值);*offset* 应为零或正值 "
574581
575582#: ../../library/io.rst:338
576583msgid ""
577584":data:`SEEK_CUR` or ``1`` -- current stream position; *offset* may be "
578585"negative"
579- msgstr ""
586+ msgstr ":data:`SEEK_CUR` or ``1`` -- 当前流位置;*offset* 可以为负值 "
580587
581588#: ../../library/io.rst:340
582589msgid ""
583590":data:`SEEK_END` or ``2`` -- end of the stream; *offset* is usually negative"
584- msgstr ""
591+ msgstr ":data:`SEEK_END` or ``2`` -- 流的末尾;*offset* 通常为负值 "
585592
586593#: ../../library/io.rst:343
587594msgid "Return the new absolute position."
@@ -597,12 +604,16 @@ msgid ""
597604":data:`os.SEEK_HOLE` or :data:`os.SEEK_DATA`. The valid values for a file "
598605"could depend on it being open in text or binary mode."
599606msgstr ""
607+ "某些操作系统还可支持其他的值,例如 :data:`os.SEEK_HOLE` 或 :data:`os.SEEK_DATA`。 "
608+ "特定文件的可用值还会取决于它是以文本还是二进制模式打开。"
600609
601610#: ../../library/io.rst:355
602611msgid ""
603612"Return ``True`` if the stream supports random access. If ``False``, "
604613":meth:`seek`, :meth:`tell` and :meth:`truncate` will raise :exc:`OSError`."
605614msgstr ""
615+ "如果流支持随机访问则返回 ``True``。 如为 ``False``,则 :meth:`seek`, :meth:`tell` 和 "
616+ ":meth:`truncate` 将引发 :exc:`OSError`。"
606617
607618#: ../../library/io.rst:360
608619msgid "Return the current stream position."
0 commit comments