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

Skip to content

Commit 19d1a0f

Browse files
committed
[po] auto sync bot
1 parent 137bfa8 commit 19d1a0f

2 files changed

Lines changed: 27 additions & 12 deletions

File tree

library/datetime.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ msgid ""
579579
"(-t3)`` except when t3 is equal to ``timedelta.max``; in that case the "
580580
"former will produce a result while the latter will overflow."
581581
msgstr ""
582+
"表达式 ``t2 - t3`` 通常与 ``t2 + (-t3)`` 是等价的,除非 t3 等于 ``timedelta.max``; "
583+
"在这种情况下前者会返回结果,而后者则会溢出。"
582584

583585
#: ../../library/datetime.rst:327
584586
msgid ""
@@ -629,12 +631,14 @@ msgid ""
629631
"``td / timedelta(seconds=1)``. For interval units other than seconds, use "
630632
"the division form directly (e.g. ``td / timedelta(microseconds=1)``)."
631633
msgstr ""
634+
"返回时间间隔包含了多少秒。造价于 ``td / timedelta(seconds=1)``。对于其它单位可以直接使用除法的形式 (例如 ``td /"
635+
" timedelta(microseconds=1)``)。"
632636

633637
#: ../../library/datetime.rst:358
634638
msgid ""
635639
"Note that for very large time intervals (greater than 270 years on most "
636640
"platforms) this method will lose microsecond accuracy."
637-
msgstr "需要注意的是,巨大的时间间隔中,这个方法的结果中微秒将会失真(大多数平台上大于270年视为一个巨大的时间间隔)。"
641+
msgstr "需要注意的是,时间间隔较大时,这个方法的结果中的微秒将会失真(大多数平台上大于270年视为一个较大的时间间隔)。"
638642

639643
#: ../../library/datetime.rst:364
640644
msgid "Example usage:"
@@ -750,7 +754,7 @@ msgstr "两个日期对象的最小间隔,``timedelta(days=1)``。"
750754

751755
#: ../../library/datetime.rst:484 ../../library/datetime.rst:892
752756
msgid "Between :const:`MINYEAR` and :const:`MAXYEAR` inclusive."
753-
msgstr ""
757+
msgstr "常量 :const:`MINYEAR` 和常量 :const:`MAXYEAR` 之间的值,包含 :const:`MAXYEAR`."
754758

755759
#: ../../library/datetime.rst:489 ../../library/datetime.rst:897
756760
msgid "Between 1 and 12 inclusive."

library/gzip.po

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# Translators:
77
# sgqy <[email protected]>, 2019
88
# Zombie110year <[email protected]>, 2019
9+
# 1lin24 <[email protected]>, 2019
910
#
1011
#, fuzzy
1112
msgid ""
@@ -14,7 +15,7 @@ msgstr ""
1415
"Report-Msgid-Bugs-To: \n"
1516
"POT-Creation-Date: 2019-01-01 10:14+0900\n"
1617
"PO-Revision-Date: 2017-02-16 23:12+0000\n"
17-
"Last-Translator: Zombie110year <zombie110year@gmail.com>, 2019\n"
18+
"Last-Translator: 1lin24 <1lin24@sina.com>, 2019\n"
1819
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1920
"MIME-Version: 1.0\n"
2021
"Content-Type: text/plain; charset=UTF-8\n"
@@ -49,9 +50,10 @@ msgid ""
4950
"-format files, automatically compressing or decompressing the data so that "
5051
"it looks like an ordinary :term:`file object`."
5152
msgstr ""
52-
":mod:`gzip` 模块提供 :class:`GzipFile` 类和便利的 "
53-
":func:`.open`、:func:`compress`、:func:`decompress` 函数。:class:`GzipFile` 类读写 "
54-
":program:`gzip` 格式的文件,同时自动压缩和解压缩数据,这让操作压缩文件如同操作普通的 :term:`file object` 一样方便。"
53+
":mod:`gzip` 模块提供 :class:`GzipFile` 类和 "
54+
":func:`.open`、:func:`compress`、:func:`decompress` 几个便利的函数。:class:`GzipFile` "
55+
"类可以读写 :program:`gzip` 格式的文件,还能自动压缩和解压缩数据,这让操作压缩文件如同操作普通的 :term:`file object`"
56+
" 一样方便。"
5557

5658
#: ../../library/gzip.rst:22
5759
msgid ""
@@ -70,33 +72,40 @@ msgstr "这个模块定义了以下内容:"
7072
msgid ""
7173
"Open a gzip-compressed file in binary or text mode, returning a :term:`file "
7274
"object`."
73-
msgstr ""
75+
msgstr "以二进制方式或者文本方式打开一个 gzip 格式的压缩文件,返回一个 :term:`file 文件对象`."
7476

7577
#: ../../library/gzip.rst:34
7678
msgid ""
7779
"The *filename* argument can be an actual filename (a :class:`str` or "
7880
":class:`bytes` object), or an existing file object to read from or write to."
7981
msgstr ""
82+
"*filename* 参数可以是一个实际的文件字(一个a :class:`str` 对象或者 :class:`bytes` 对象), "
83+
"或者是一个用来读写的已存在的文件对象。"
8084

8185
#: ../../library/gzip.rst:37
8286
msgid ""
8387
"The *mode* argument can be any of ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, "
8488
"``'w'``, ``'wb'``, ``'x'`` or ``'xb'`` for binary mode, or ``'rt'``, "
8589
"``'at'``, ``'wt'``, or ``'xt'`` for text mode. The default is ``'rb'``."
8690
msgstr ""
91+
"*mode* 参数可以是二进制模式: ``'r'``, ``'rb'``, ``'a'``, ``'ab'``, ``'w'``, ``'wb'``, "
92+
"``'x'`` or ``'xb'`` , 或者是文字模式 ``'rt'``, ``'at'``, ``'wt'``, or ``'xt'``。默认值是"
93+
" ``'rb'``。"
8794

8895
#: ../../library/gzip.rst:41
8996
msgid ""
9097
"The *compresslevel* argument is an integer from 0 to 9, as for the "
9198
":class:`GzipFile` constructor."
92-
msgstr ""
99+
msgstr " *compresslevel* 参数是一个用于 :class:`GzipFile` 构造器的从 0 到9的整数。"
93100

94101
#: ../../library/gzip.rst:44
95102
msgid ""
96103
"For binary mode, this function is equivalent to the :class:`GzipFile` "
97104
"constructor: ``GzipFile(filename, mode, compresslevel)``. In this case, the "
98105
"*encoding*, *errors* and *newline* arguments must not be provided."
99106
msgstr ""
107+
"对于二进制模式,这个函数等价于 :class:`GzipFile` 构造器:``GzipFile(filename, mode, "
108+
"compresslevel)``。在这个例子中,*encoding*, *errors* 和 *newline* 三个参数一定不要设置。"
100109

101110
#: ../../library/gzip.rst:48
102111
msgid ""
@@ -109,7 +118,7 @@ msgstr ""
109118
msgid ""
110119
"Added support for *filename* being a file object, support for text mode, and"
111120
" the *encoding*, *errors* and *newline* arguments."
112-
msgstr ""
121+
msgstr "支持 *filename* 为一个文件对象,支持文本模式和 *encoding*, *errors* 和 *newline* 参数。"
113122

114123
#: ../../library/gzip.rst:56
115124
msgid "Added support for the ``'x'``, ``'xb'`` and ``'xt'`` modes."
@@ -238,11 +247,11 @@ msgstr ""
238247

239248
#: ../../library/gzip.rst:144
240249
msgid "The :meth:`io.BufferedIOBase.read1` method is now implemented."
241-
msgstr ""
250+
msgstr "实现 :meth:`io.BufferedIOBase.read1` 方法。"
242251

243252
#: ../../library/gzip.rst:147
244253
msgid "Added support for the ``'x'`` and ``'xb'`` modes."
245-
msgstr ""
254+
msgstr "增加了对 ``'x'`` and ``'xb'`` 两种模式的支持。"
246255

247256
#: ../../library/gzip.rst:150
248257
msgid ""
@@ -257,12 +266,14 @@ msgid ""
257266
"compressed data. *compresslevel* has the same meaning as in the "
258267
":class:`GzipFile` constructor above."
259268
msgstr ""
269+
"压缩 *data* 返回一个包含压缩数据的 :class:`bytes` 对象。 *compresslevel* 的作用与上面提到的 "
270+
":class:`GzipFile` 构造器一至。"
260271

261272
#: ../../library/gzip.rst:170
262273
msgid ""
263274
"Decompress the *data*, returning a :class:`bytes` object containing the "
264275
"uncompressed data."
265-
msgstr ""
276+
msgstr "解压数据,返回一个 :class:`bytes` 包含未解压数据的对象。"
266277

267278
#: ../../library/gzip.rst:179
268279
msgid "Examples of usage"

0 commit comments

Comments
 (0)