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

Skip to content

Commit 03bdb05

Browse files
committed
[po] auto sync bot
1 parent 462b1bf commit 03bdb05

1 file changed

Lines changed: 28 additions & 8 deletions

File tree

library/stdtypes.po

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# 叶浚安 <[email protected]>, 2019
1616
# 马强 <[email protected]>, 2019
1717
# Meng Du <[email protected]>, 2019
18-
# Freesand Leo <[email protected]>, 2019
1918
# Zombie110year <[email protected]>, 2019
19+
# Freesand Leo <[email protected]>, 2019
2020
#
2121
#, fuzzy
2222
msgid ""
@@ -25,7 +25,7 @@ msgstr ""
2525
"Report-Msgid-Bugs-To: \n"
2626
"POT-Creation-Date: 2019-03-08 11:02+0900\n"
2727
"PO-Revision-Date: 2017-02-16 23:27+0000\n"
28-
"Last-Translator: Zombie110year <zombie110year@gmail.com>, 2019\n"
28+
"Last-Translator: Freesand Leo <yuqinju@163.com>, 2019\n"
2929
"Language-Team: Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n"
3030
"MIME-Version: 1.0\n"
3131
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1915,17 +1915,19 @@ msgid ""
19151915
"access by index, :func:`collections.namedtuple` may be a more appropriate "
19161916
"choice than a simple tuple object."
19171917
msgstr ""
1918+
"对于通过名称访问相比通过索引访问更清晰的异构数据多项集,:func:`collections.namedtuple` "
1919+
"可能是比简单元组对象更为合适的选择。"
19181920

19191921
#: ../../library/stdtypes.rst:1257
19201922
msgid "Ranges"
1921-
msgstr ""
1923+
msgstr "range 对象"
19221924

19231925
#: ../../library/stdtypes.rst:1261
19241926
msgid ""
19251927
"The :class:`range` type represents an immutable sequence of numbers and is "
19261928
"commonly used for looping a specific number of times in :keyword:`for` "
19271929
"loops."
1928-
msgstr ""
1930+
msgstr ":class:`range` 类型表示不可变的数字序列,通常用于在 :keyword:`for` 循环中循环指定的次数。"
19291931

19301932
#: ../../library/stdtypes.rst:1268
19311933
msgid ""
@@ -1935,37 +1937,48 @@ msgid ""
19351937
"*start* argument is omitted, it defaults to ``0``. If *step* is zero, "
19361938
":exc:`ValueError` is raised."
19371939
msgstr ""
1940+
"range 构造器的参数必须为整数(可以是内置的 :class:`int` 或任何实现了 ``__index__`` 特殊方法的对象)。 如果省略 "
1941+
"*step* 参数,其默认值为 ``1``。 如果省略 *start* 参数,其默认值为 ``0``,如果 *step* 为零则会引发 "
1942+
":exc:`ValueError`。"
19381943

19391944
#: ../../library/stdtypes.rst:1274
19401945
msgid ""
19411946
"For a positive *step*, the contents of a range ``r`` are determined by the "
19421947
"formula ``r[i] = start + step*i`` where ``i >= 0`` and ``r[i] < stop``."
19431948
msgstr ""
1949+
"如果 *step* 为正值,确定 range ``r`` 内容的公式为 ``r[i] = start + step*i`` 其中 ``i >= 0`` "
1950+
"且 ``r[i] < stop``。"
19441951

19451952
#: ../../library/stdtypes.rst:1278
19461953
msgid ""
19471954
"For a negative *step*, the contents of the range are still determined by the"
19481955
" formula ``r[i] = start + step*i``, but the constraints are ``i >= 0`` and "
19491956
"``r[i] > stop``."
19501957
msgstr ""
1958+
"如果 *step* 为负值,确定 range 内容的公式仍然为 ``r[i] = start + step*i``,但限制条件改为 ``i >= 0``"
1959+
" 且 ``r[i] > stop``."
19511960

19521961
#: ../../library/stdtypes.rst:1282
19531962
msgid ""
19541963
"A range object will be empty if ``r[0]`` does not meet the value constraint."
19551964
" Ranges do support negative indices, but these are interpreted as indexing "
19561965
"from the end of the sequence determined by the positive indices."
19571966
msgstr ""
1967+
"如果 ``r[0]`` 不符合值的限制条件,则该 range 对象为空。 range "
1968+
"对象确实支持负索引,但是会将其解读为从正索引所确定的序列的末尾开始索引。"
19581969

19591970
#: ../../library/stdtypes.rst:1287
19601971
msgid ""
19611972
"Ranges containing absolute values larger than :data:`sys.maxsize` are "
19621973
"permitted but some features (such as :func:`len`) may raise "
19631974
":exc:`OverflowError`."
19641975
msgstr ""
1976+
"元素绝对值大于 :data:`sys.maxsize` 的 range 对象是被允许的,但某些特性 (例如 :func:`len`) 可能引发 "
1977+
":exc:`OverflowError`。"
19651978

19661979
#: ../../library/stdtypes.rst:1291
19671980
msgid "Range examples::"
1968-
msgstr ""
1981+
msgstr "一些 range 对象的例子::"
19691982

19701983
#: ../../library/stdtypes.rst:1308
19711984
msgid ""
@@ -1974,22 +1987,24 @@ msgid ""
19741987
"objects can only represent sequences that follow a strict pattern and "
19751988
"repetition and concatenation will usually violate that pattern)."
19761989
msgstr ""
1990+
"range 对象实现了 :ref:`一般 <typesseq-common>` 序列的所有操作,但拼接和重复除外(这是由于 range "
1991+
"对象只能表示符合严格模式的序列,而重复和拼接通常都会违反这样的模式)。"
19771992

19781993
#: ../../library/stdtypes.rst:1315
19791994
msgid ""
19801995
"The value of the *start* parameter (or ``0`` if the parameter was not "
19811996
"supplied)"
1982-
msgstr ""
1997+
msgstr "*start* 形参的值 (如果该形参未提供则为 ``0``)"
19831998

19841999
#: ../../library/stdtypes.rst:1320
19852000
msgid "The value of the *stop* parameter"
1986-
msgstr ""
2001+
msgstr "*stop* 形参的值"
19872002

19882003
#: ../../library/stdtypes.rst:1324
19892004
msgid ""
19902005
"The value of the *step* parameter (or ``1`` if the parameter was not "
19912006
"supplied)"
1992-
msgstr ""
2007+
msgstr "*step* 形参的值 (如果该形参未提供则为 ``1``)"
19932008

19942009
#: ../../library/stdtypes.rst:1327
19952010
msgid ""
@@ -1999,13 +2014,18 @@ msgid ""
19992014
"it only stores the ``start``, ``stop`` and ``step`` values, calculating "
20002015
"individual items and subranges as needed)."
20012016
msgstr ""
2017+
":class:`range` 类型相比常规 :class:`list` 或 :class:`tuple` 的优势在于一个 :class:`range` "
2018+
"对象总是占用固定数量的(较小)内存,不论其所表示的范围有多大(因为它只保存了 ``start``, ``stop`` 和 ``step`` "
2019+
"值,并会根据需要计算具体单项或子范围的值)。"
20022020

20032021
#: ../../library/stdtypes.rst:1333
20042022
msgid ""
20052023
"Range objects implement the :class:`collections.abc.Sequence` ABC, and "
20062024
"provide features such as containment tests, element index lookup, slicing "
20072025
"and support for negative indices (see :ref:`typesseq`):"
20082026
msgstr ""
2027+
"range 对象实现了 :class:`collections.abc.Sequence` "
2028+
"ABC,提供如包含检测、元素索引查找、切片等特性,并支持负索引 (参见 :ref:`typesseq`):"
20092029

20102030
#: ../../library/stdtypes.rst:1353
20112031
msgid ""

0 commit comments

Comments
 (0)