99# Aloxaf <[email protected] >, 20191010# Meng Du <[email protected] >, 20191111# Shengjing Zhu <[email protected] >, 201912- # Freesand Leo <[email protected] >, 2019 12+ # Freesand Leo <[email protected] >, 2020 1313#
1414#, fuzzy
1515msgid ""
@@ -18,7 +18,7 @@ msgstr ""
1818"Report-Msgid-Bugs-To : \n "
1919"POT-Creation-Date : 2020-05-31 09:25+0000\n "
2020"PO-Revision-Date : 2017-02-16 17:46+0000\n "
21- "
Last-Translator :
Freesand Leo <[email protected] >, 2019 \n "
21+ "
Last-Translator :
Freesand Leo <[email protected] >, 2020 \n "
2222"Language-Team : Chinese (China) (https://www.transifex.com/python-doc/teams/5390/zh_CN/)\n "
2323"MIME-Version : 1.0\n "
2424"Content-Type : text/plain; charset=UTF-8\n "
@@ -97,6 +97,8 @@ msgid ""
9797"a function (or other callable) to be called on each list element prior to "
9898"making comparisons."
9999msgstr ""
100+ ":meth:`list.sort` 和 :func:`sorted` 都有一个 *key* "
101+ "形参用来指定在进行比较前要在每个列表元素上调用的函数(或其他可调用对象)。"
100102
101103#: ../../howto/sorting.rst:49
102104msgid "For example, here's a case-insensitive string comparison:"
@@ -109,6 +111,7 @@ msgid ""
109111"This technique is fast because the key function is called exactly once for "
110112"each input record."
111113msgstr ""
114+ "*key* 形参的值应该是个函数(或其他可调用对象),它接受一个参数并返回一个用于排序的键。 这种机制速度很快,因为对于每个输入记录只会调用一次键函数。"
112115
113116#: ../../howto/sorting.rst:59
114117msgid ""
0 commit comments